39,320 Topics

Member Avatar for
Member Avatar for sanjay@srvmedia
Member Avatar for jstfsklh211

I'm trying to change user ldap passwords heres the code $ds = ldap_connect(LDAP_HOST, LDAP_PORT); ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); $bind = ldap_bind($ds, 'uid={admin},'.LDAP_BASEDN, '{admin password}'); $userpassword = "{SHA}" . base64_encode(sha1( '{password}', TRUE )); $userdata = array("userPassword" => $userpassword); $result = ldap_mod_replace($ds, 'uid={user},'.LDAP_BASEDN, $userdata); ldap_close($ds); `$result` returns true i can even see the …

Member Avatar for diafol
0
483
Member Avatar for nazree.zeko

So i got one form so the user can enter and submit their personal details. The problem is i didn't apply any validation . I've done a simple validation like this , but it seem to be not working . function validate(){ if((\$('txt_no_kp').value != '') && (\$('txt_nama').value != '') && …

Member Avatar for nazree.zeko
0
240
Member Avatar for davy_yg

Hello, How to make the contact us works? [Contact Us](http://www.indonusa.net.id/contactus.php) contactus.php <?php // require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $subject = str_replace(" ", "", strip_tags(@$_POST['subject'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$subject&&$message) { // $privatekey = "6LfjvdcSAAAAAHNcKjYO5DhTNefxYZHYcfhtrvGC"; // $resp = recaptcha_check_answer($privatekey, // $_SERVER["REMOTE_ADDR"], // $_POST["recaptcha_challenge_field"], …

Member Avatar for nauticalmac
0
799
Member Avatar for johnef_sh

hi I using PHP/MySQL with Google Maps from here https://developers.google.com/maps/articles/phpsqlajax_v3 and then I used PHP's DOM functions to Output XML from here https://developers.google.com/maps/articles/phpsqlajax_v3#outputxml everything working fine with me but I need to center google map on the marker. here is the code that center the map and make the zoom …

Member Avatar for johnef_sh
0
9K
Member Avatar for Priti_P

Hello All, I want to send event invitation to Google user, using google calendar API. for this, I am using Google calendar API in php, for inserting event in the google calendar . I have used php-client libraries https://developers.google.com/google-apps/calendar/downloads But problem with this is : it require login. So how …

Member Avatar for gabrielcastillo
0
247
Member Avatar for dudegio

Hello guys! Anyone who has an idea of integarting a bar code reader to a inventory system. The function is to read the bar code and this will serve as an input to the system. Any suggestion are very much welcome. thank you!

Member Avatar for phpdeveloper123
0
3K
Member Avatar for kharthikeyan

Use Time Zone <?php $date = date_default_timezone_set('Asia/Kolkata'); echo date("d/m/Y h:i:s a", time()); ?> Or Use Time Diferrence from GMT <?php $time_now=mktime(date('h')+5,date('i')+30,date('s')); echo date("d/m/Y h:i:s a", time()); ?>

Member Avatar for cereal
0
45
Member Avatar for chaitu11

How to generate a unique random username.It should not be sequential but should be unique and random

Member Avatar for pritaeas
0
51
Member Avatar for davidjennings

Hi all, I am looking to extract address line of text into arrays in a word document. I am only really looking for the postcode to extract. Any help would be appreciated Thanks David Velta - The Underfloor Heating Company, Wombwell School, S73 8AX Speedy Asset Services Limited, C/O Arnold …

Member Avatar for davidjennings
0
295
Member Avatar for lydia21

hi i am doing a attendance sheet appln... i want to know how to get the current indian time,date,month and year..... and i want to store that in mysql database lydia

Member Avatar for kharthikeyan
0
3K
Member Avatar for rubai

I am new in plugin development. I created a plugin with the help of http://codex.wordpress.org/Creating_Options_Pages <?php /* Plugin Name: 1pluginframework Plugin URI: Description: Custom plugin for lendingbig website. Version: 1.0 Author: Jahur Ahmed Author URI: License: GPLv2 or later */ // create custom plugin settings menu add_action('admin_menu', 'baw_create_menu'); function baw_create_menu() …

Member Avatar for rubai
0
312
Member Avatar for urbanthistleuk

Hello, I am after some help, I need to know how to do srv lookups using php and possibly mx lookup, I have a form which already has a textbox which selects the domian from a mysql database, I need to be able to display the srv record below the …

Member Avatar for urbanthistleuk
0
240
Member Avatar for mbarandao

Hello, I have the following string and would like to use preg_match() to extract parts of the string. Yang club 4931 Wyaconda RdRockville, IA 20852 301-937-3401 Monday - Friday - 3:00 - 10:00PM and Saturday & Sunday -12:00 - 8:00PM another possible string is: Kahler Hall 5440 Old Tucker Row …

Member Avatar for mbarandao
0
809
Member Avatar for davy_yg

Hello, I am trying to create a search form in order to search articles title and contents. Here is my code: searchPDO.php <?php // PDO start here //This is only displayed if they have submitted the form $find = strip_tags(@$_POST['find']); $searching = strip_tags(@$_POST['searching']); if (isset($searching) && $searching==yes) { echo "<h2>Results</h2><p>"; …

Member Avatar for cereal
0
344
Member Avatar for ndrdesign

Hello. I have a source code written in c++. With this source code i should compile it and make with him a pdf viwer that will be embeeded into a webpage. Can anyone help me what program should i use? how can i compile it and embeed the result into …

Member Avatar for rubberman
0
359
Member Avatar for ndrdesign

Hello. I have compiled a c++ program and i want it to be run into a webpage. I have tried the proc_open() command but it doesnt work. any help or suggestion?

Member Avatar for rubberman
0
329
Member Avatar for john_56

I have recently purchased a ready made site as I am new to all things HTML CSS etc (although I am learning fast). Every time I have tried to go to the page I get this msg Parse error: syntax error, unexpected T_STRING in /home/a4616062/public_html/index.html on line 1. Here is …

Member Avatar for john_56
0
154
Member Avatar for Thkaal

Okay, here is the code I'm using. The original author hasn't been seen in three years and I haven't been able to get a response for a month so I'm asking here. The people here seem to be abel to help me more than anyone else. This is the ipn.php: …

Member Avatar for Thkaal
0
722
Member Avatar for vishalonne

Hello I am writing an PHP module for admission process. It have an admission form. Tentatively ddmission process start from mid of March and ends in mid of May (not fixed). My question is what is the best way to activate and deactivate the calendar control of this admission form …

Member Avatar for JorgeM
0
175
Member Avatar for vinsbg

Hello, So I try to learn php and decided to make one site where I add images, save them in folder and id, name,type, path in mysql. Then show on page. So far I have upload form and I can upload and save images. Also I showing them successfully on …

Member Avatar for vinsbg
0
211
Member Avatar for patk570

Hi guys, I am trying to get the last_insert_id() from the table above, that way when it sends the query and is successful, it then updates the events table with timestamp, id , asset type and asset id from the insert code. I am currently using the max(id) but its …

Member Avatar for patk570
1
2K
Member Avatar for mbarandao

I am generating a multidimensional array which outputs in the following format: Array ( [0] => Array ( [cName] => "Club Name (Exp. Date)" [location] => "" [days_times] => '0' [zip] => 0 [state] => 0 [contact_person] => "" [contact_phone] => '0' ) ) Array ( [0] => Array ( …

Member Avatar for mbarandao
0
326
Member Avatar for Monica_1

Hello ... i've been working for months now with Apache MySql Database ... It had been working GREAT Until TODAY!... Its Driving me crazy and I REALLY REALLY Need Help!!! Everytime i try to launch my DATABASE to work on my tables it takes more than 15 minutes and when …

Member Avatar for gabrielcastillo
0
184
Member Avatar for miyotz

I have here my Javascript code that adds dynamic textbox (row) my problem is how can I save the values from the dynamic textbox to database using PHP script? Hope you can help me guys.. Thanks! <script type="text/JavaScript"> function addRow(r){ var root = r.parentNode;//the root var allRows = root.getElementsByTagName('tr');//the rows' …

Member Avatar for diafol
0
1K
Member Avatar for developer707

Hello to everyone, I have a mysql table CREATE TABLE `tools_domuments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `filename` varchar(255) CHARACTER SET utf8 NOT NULL, `description` longtext CHARACTER SET utf8 NOT NULL, `filetype` varchar(255) CHARACTER SET utf8 NOT NULL, `document` longtext CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB …

Member Avatar for developer707
0
216
Member Avatar for wkwasniak

Hi. I just wonder, is it possible, to validateform , which has been "echoed" in PHP using JavaScript function? See code below <?php if(isset($_SESSION['email'])){ echo"You are looged in as ".$_SESSION['email']. "</br> "; echo' <form action="confirmlogout.php" id"logoutform" method="post"> <input type="submit"id="sub" name="sub" onclick="" value = "LOG OUT" /> </form></br>'; } else{ echo …

Member Avatar for wkwasniak
0
332
Member Avatar for chaitu11
Member Avatar for Mr.M

Hi Dw I'm creating a registration page and log in page. I'm just planing on saving the data that the client will supply on the registration page and the log in page retrieve data which consist of password and username from the database to verify if the user is registered …

0
62
Member Avatar for chaitu11

The End.