39,323 Topics
| |
Why should we change the Security Salt value in CakePHP? and What if we don't change the value? | |
Hello guys!. I posted a question similar to this, but then i was able to solve that problem so, this new thing arise. I want to practice PHP. I need to learn it becauseill be doing a project using it, im a noob. Means, i know nothing about it so … | |
G'day, As many of you viewing this may know there is always a right way to do something and a wrong way to do something. So I've come here to see if I could maybe seek some guidance. What I have done is create a dynamic set of form fields … | |
I have an array coming from a mysql statement. It is being convered into an array using mysql_fetch_array. This is then fed into a while loop. I want the array to be reversed. Currently it is printing the results as Bob, 23 Steve, 26 However I want it to echo … | |
I can read the session.save_path from the remote server at php_info.php. It is set to "no value". I assume that this defaults to /tmp. I understand that in the absence of some other command, this means that session variable files will be saved here. The error message is Warning: session_start() … | |
My web host recently migrated to a new server and in the process upgraded to PHP5.4 I have a snippet that was doing timezone conversion, but since the upgrade the script stops dead on a certain line in the snippet, and though a web page is displayed, none of the … | |
my teacher wants us to create a php codes that can serve as a library. only searching for books the user wants to see. please help? | |
In the following program can someone please tell me why my script is skipping the first else clause and never printing "You have already changed your password"? Everything else is working fine but when I enter in a username and password that have already been entered into the system it … | |
Hello, I have below code for my calender invitation. <?php $message=" BEGIN:VCALENDAR VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20130901T121000Z DTEND:20130901T131000Z DTSTAMP:20110525T075116Z ORGANIZER;CN=From Name:mailto:from email id UID:12345678 ATTENDEE;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sample:emailaddress@testemail.com DESCRIPTION:Test the first invite LOCATION: Test Location SEQUENCE:0 STATUS:CONFIRMED SUMMARY:Test the first icalendar invitation TRANSP:OPAQUE END:VEVENT END:VCALENDAR"; /*headers*/ $headers = "From: From Name <From … | |
Dear pals, I am newbie in RESTful services . I need to call a GET Verb in Server . I know 2 methods 1. Ajax Call we can write it as $.ajax({ url: url, dataType: "html", type: 'GET', data: "id="+id+"&type="+type, success: function(data){ //$("#content").html(data); alert(data); $('table #sample-boxed-2-pagination th a').each(function(){ //this.href = … | |
hello i just want to ask if how to echo value/details using this API link that have given - http://themesnmotifs.com/api/wp/f6f60a0e7091a627641f01b9d1dd7536ea4b8496/list_wp - for example i want to echo all the companyand wp_cellphone -- . thank you | |
Hey Guys I m trying to open a php page (that retrieve data from database according to the form fields) on button click in a modern type popup window like fancybox, lightbox iframes etc...you can check the link (www.goodmoves.in/)..currently it is opening a normal old fashion popup window. . . … | |
Could any one plz tell me what's wrong with my code My sql select while loop is not checking date range that's been inserted into the form. <?php if(isset($_POST['start'])&& ($_POST['end'])){ $user_id = $_SESSION['user_id']; $leave_type= $_POST['leave_type']; $comments= $_POST['comments']; $start=date('Y-m-d',strtotime($_POST['start'])); $end=date('Y-m-d',strtotime($_POST['end'])); echo $start,'',$end; **$checkdate = "SELECT * FROM emp_status WHERE user_id='$_SESSION[user_id]' AND … | |
hy all, how to get previous value and check different between recently value and previous values in loop < 0.5? if different value < 0.5 get it's array please help me define('DIV', 0.5); function iteration($data, $data2) { $m1=$m2=$data; $m3=multiply($m1,$m2); echo "iteration 1:\n"; print_r($m3); $temp_m3 = $m3; for ($i=0;$i<count($temp_m3);$i++) { for … | |
I need help with an assignment. I have been working of this the better part of a week and still do not really understand what I am meant to do. This is my first week using PHP and I am really confused. Here are the instructions: Write a PHP script … | |
Here i am uploading data through a form which contains some input fields and one image. But i want to upload multiple images here instead of one image. I am attaching my php code here to upload the data and single image. Can anyone edit this code to add mutliple … | |
When I check sometimes, on the php.ini files, I see that there are many loaded extentions, and for the most part, I only open the file to enable or disable some extentions like curl, but other than that, I do now know what the hundreds of extention do, so I … | |
Hi, i have successfully stored a link to docx and pdf files into mysql db. I'm trying to retrieve it from db and display it similar to pictures. Now when the user click on it, it should open the file and display it. If any one have a code sinppet … | |
Hello, Recently I am trying to make a php file than when it is opened it should backup a database and promt the user to save the .sql file... This is a feaure that has phpmyadmin but I want something very simple, just clicking http://mywebsite.com/backup.php and the file should be … | |
Hi! I'm a newbie in PHP. I'm currently looking for a debugging tool for PHP, does DreamWeaver CS6 provides this? Or is there any debugging tool, easy to install? BTW, I tried downloading xDebug but i can't figure out how to install it into eclipse Juno. I downloaded a DLL … | |
I am working on a form that will redirect users based on a form. The form asks for a zipcode. If the zipcode is correct (one of the zipcodes in the service area) then I want to redirect to an order page. If the zip code is incorrect, not in … | |
I have this code $request = mysql_query("SELECT note_title,image_file FROM notez"); while($row=mysql_fetch_array($request)) { echo $row['image_file'].'<br />'; echo $row['note_title'].'<br />'; } and the path to the folder where i stored the files is userimages_doc when i click on note_title , i want to download the file | |
0 down vote favorite I have a table in database like this: ID, features, Values : ID will be 1, 2, 3.... features will be color, size, material.... values will be red, 13inch, silicon... I stored it like this: ID 1 1 1 Features color size material values red 13in … | |
i used addslashes() in php its added \ slash in FireFox Browser thats Working BUT in Chrome Browser this Function add / slash So,My URL is not Display Correct Content.. so, What Should i use over here... Please... Thanks. | |
I am creating a flight/hotel reservation system like farecompare.com Farecompare parse values to other sites and create sessions other sites too. Anyone tell me how they create sesssions in it. I can parse url but i am not able to create sessions. public function flight($depart, $return, $from, $to, $type, $class, … | |
what is the first file that get loaded when you run a application using cakephp? can you change that file? | |
what is a component,helper and why are they used, is there other way we can do same thing, what is better? | |
I am running a PHP script, and keep getting errors like: *Notice: Undefined variable: result2 in D:\xampp-win32\htdocs\sites\bookstore\result_page.php on line 200 *warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in D:\xampp-win32\htdocs\sites\bookstore\result_page.php on line 200 Line 200 looks like this: `<?php while($row = mysqli_fetch_array($result2))` What do they mean? | |
Hi all, i have a table in db which contain some pdf and docx files. Am trying to display it in a way, so that when the user click on it, it will load the pdf and/or docx file from db in another/same window. this is what i have done … | |
I cant install cakephp.I had wamp installed me.But when i try to install cakephp i got the following errors CakePHP: the rapid development php framework Release Notes for CakePHP 2.1.1. Read the changelog Notice (1024): Please change the value of 'Security.salt' in app/Config/core.php to a salt value specific to your … |
The End.