php

How to redirect to the top of a page from a form submit button? HTML/PHP

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...

Function to pass javascript variables to a php file via a GET or POST?

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? ...

PDF Creator and Reader in PHP

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? ...

page redirection problem.

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...

Email notification after upload? - uploadify

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 an inherent memory limit, beyond what I set?

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.) ...

send mail from client and server in php

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...

htmlspecialchars removes formatting

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 ...

Warning: require_once(): It is not safe to rely on the system's timezone settingserror in PHP

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...

PHP::How to convert json object into array if json value contains encoded data?

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...

Need help with xmlrpc in php

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...

Implenting Credit card processing within PHP MySql Site

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...

Select multiple Image and upload atonce using PHP

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. ...

putting a php variable in a HTML form value

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. ...

PHP OOP 4/5 Compatibility?

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...

a problem with creating a site in IIS 7.5 which is using PHP

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...

remove element from xml

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...

PHP: Get key from array?

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...

How much important is it to develop different database specific escaping mechanisms for different projects?

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...

How could I improve this template system?

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...