I have made a personality test users can fill in. (Its in dutch, find it here: http://www.schoolvoorontwikkeling.nl/contact/nieuwe-test ) It consists of about 15 multiple choice questions. At the bottom is a submit button, and it is rather far down. When the user clicks it he is redirected to a page that displays his "score" which is bas...
Hey guys,
I've got the following function
function make(point, name, message, type, file, id, lat, lng)
I want this function to pass all of these Javascript variables to a php file which would open in a window when a link is pressed how would I do this?
...
I want to make a online PDF Creator and Reader in PHP which will support all features available in Adobe Acrobat like Bookmarking, Signing, Commenting, Editing, Header and Footer, watermark etc etc.. Can you please suggest me a good PHP Library which will help me to do that?
...
I am creating application in facebook using iframe. In that i want to redirect from one page to another. i m using following code:
<fb:redirect url='http://....' />
but this is not working and instead of redirecting it stays on same page.
so i used following code:
header("Location: http://.......");
this is working properly but pr...
Hello,
I am currently attempting to use Jquery Uploadify in order to upload multiple files to my server.
I need the server to send an email notification after the upload has been completed; however the problem is I need to use the multi function which at the moment causes the server to send the email each time at the end of each differe...
Does PHP have a built-in limitation on how much memory it can use? In other words, if I have a machine with many gigs of RAM and change php.ini to allocate most of them, will scripts still hit some lower limit?
(If you're curious, the goal is to run an automatic documentation generator, written in PHP, on a very large PHP code base.)
...
Hi everyone, i have request form in my site. i submit the form in php the mail send to server.i need a code the mail send to server and "thank you for request" mail send to client at a time .
Example:
<?php
ob_start();
$namecp = $_POST['namecp'];
$namec = $_POST['namec'];
$mobile = $_POST['mobile'];
$lname = $_POST['lname'];
$pro...
i'm calling the htmlspecialchars function inside another function in a class, but when i do this, even though the data displays, it removes all formatting showing the data in a single line.
this is the code:
class Name {
. .. .
public function h($s)
{
echo htmlspecialchars($s, ENT_QUOTES);
}
public function ...
I am trying to install a open source PHP application IIS; after installation I am getting the following error:
Warning: require_once(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are...
Hi,
I am trying to convert json data in to array using php. But unfortunately my json data contains encoded values. For this reason why i am unable to convert this json object in to array in php. I tried it in different ways, But i couldn't get any solutions to solve this.
This is the URL data i am getting from client side.
controll...
I have downloaded phpxmlrpc from http://phpxmlrpc.sourceforge.net/
I have a folder on my webserver called xmlrpc-test and have a simple test php app created.
<?php
include 'xmlrpc.inc';
include 'xmlrpcs.inc';
function sumAndDifference ($params) {
// Parse our parameters.
$xval = $params->getParam(0);
$x = $xval->scalarval...
Hi,
I am developing an Ecommerce website and I would like to implement Credit/Debit card processing within the site.
I would like to know if there are any good PHP scripts which fully implement this and the payment gateways that provide this service.
Also the website will have a Money Back guarantee feature in the event of cancellin...
Hi,
I am using PHP5 and I want to create multiple file uploader of type Image, in such a way that user could select different images while holding Ctrl button and click mouse left button (While user doing so all images will push in an array) and when ever he click to Uplaod button then all images would be upload.
...
Hey guys,
I've got a php variable like so.. $name = $_REQUEST['name']; I'd like to put it in a HTML form field's value e.g in here.. <input type="text" name="name" value=(php variable here) />
How would I do so?
Thanks.
...
I've read that major changes were made in PHP 5 to the OO structure, so I'm concerned (before taking up OOP PHP) that users would need a specific version of PHP installed to run my application (either 4 or 5). Up until now this hasn't really been an issue as it's just been differences like missing functions or different return values.
S...
hey all,
I am trying to run web application scripted in PHP on windows server 2008. I have configured PHP (as fastcgi) and IIS. Everything goes fine except the following scenario.
In the php.ini document "doc_root" edited with the correct root path for my php projects which is "c:\inetpub\wwwroot\". I created a new site on IIS and mapp...
hi every one ,
in my xml file i want to remove record element according to title
My xml file is
<?xml version="1.0"?>
<gallerylist>
<record>
<movie>videos/Avatar_HD.flv</movie>
<title>Title:</title>
<desc>Description</desc>
<preview>videos/previews/avatar.jpg</preview>
<imgplaylist>videos/imgplaylist/p1.jpg</imgpl...
Hi everybody,
I am sure that this is super easy and built-in function in PHP, but I have yet not seen it.
Here's what I am doing for the moment:
forEach($array as $key => $value) {
echo $key; // Would output "subkey" in the example array
print_r($value);
}
Could I do something like the following instead and thereby save myse...
As we know, the magic quotes in PHP is already deprecated, this is done to discourage relying on this feature for preventing SQL Injection and to encourage developers to develop database specific escaping mechanisms.[Source: php.net] Is this really neccessary?
If Yes,
Why? Why can't we just use functions like mysql_real_escape_string...
At the moment, I have a base HTML template file. When ever I want to make a new page, I copy the template and place some require_once statements in between specific tags. I was wondering if there's a better way that would make it unnecessary to copy the template each time. Here's a typical example:
<html>
<head>
<meta http-equi...