1,003 Posted Topics
Re: hi, If you want to save js file with php extension, then it should be just like this.. function _(x){ return document.getElementById(x); } function toggleElement(x){ var x = _(x); if(x.style.display == 'block'){ x.style.display = 'none'; }else{ x.style.display = 'block'; } } save it as main.js.php . That should do the … | |
Re: Hi, I think you are making codeIgniter more complex than it should. What is happening in your code is that you are trying iterate on an array that codeIgniter is not aware of. If the filenames of the pictures are stored in the database, then you should build your model, … | |
Re: Hi, I think that is pretty much possible and can be done. There is an ORM for Kohana called Leap ORM , which I believe is capable of handling different types of DB. | |
Re: @devarmagan, **!Warning!** Script below is not tested. However, I am confident that it will help you isolate the problems you are having. If I don't over parenthesized or missed some semi-colons it should work as I intended it to be. jUst a simple suggestion, why not test checkboxes in one … | |
Re: is it really must have to use the FULLTEXT mysql function to be able to search? The reason I am asking is that FULLTEXT is less forgiving than the LIKE function. What I am trying to get here is that..this SELECT * FROM chardonnay WHERE MATCH name AGAINST('%".$find."%') must have … | |
Re: If you are new to OOP, there is a framework called kohana. OOP is pretty dry in this framework, you will not get wet that for sure, and most importantly NO NOSE BLEEDS that never stops like the one I have :). You can probably use this framework in about … | |
Re: Dude, What the text meant is not to crawl any pages within and below the directory where the robot.txt is located. If you don't want the spider to crawl the image directory, you can give the instruction like this User-agent: * Disallow: /images/ this User-agent: * is for all the … | |
Re: Hi, Although this codes below works, it contradict its own conditions.. Assuming that suppressant will work on mysql_connect and select, this should not be written like this.. if(!@mysql_connect($mysql_host, $mysql_user,$mysql_pass)|| !@mysql_select_db($mysql_db)){ die($conn_error); } Why is there a contradiction? Because you are suppressing it and yet you want it to return the … | |
Re: You should be rewarded for solving this question. :) Check your skill endorsement...I pretty seldom I stop by in this part of Daniweb. It is not that I can't do all these things, but I found the other side more challenging.. | |
Re: Hi, Do you want to show them outside of the wordpress universe?, or are trying to create your own plugins? Using wordpress docs as referenced [here](http://codex.wordpress.org/Function_Reference/get_posts), we can easily device simple codes to retrieve and sort blog posts. Example codes below is outside the wordpress. If you will be using … | |
Re: Have you tried changing 127.0.0.1:3306 to the remote computer's ip e.g 192.168.4.1:3306 ? | |
Re: Hi, Here is another option with jquery. Credits are due to css-tricks.com.. This script has been inspired by one of their published articles. I modified it to create a blinking effect announcement, but you can always use it to change the color of specific li. <!DOCTYPE HTML> <html> <head> <meta … | |
Re: Hi, It is my lazy night, tonight so I am not going to explain my answer any further than what the corrected codes can do. By the way, You will need to reasearch PHP reference.. I wrote a function in the form processor that uses the reference function. In your … | |
Re: Hi, Too many other ways of doing this. We can make it at lot simpler, but I don't like auto loading whenever a db connector is involve, I rather write it in basic class and then deliver the instance of the class by Singleton. kinda like this... you should convert … | |
Re: Hi, Can you try this ? for($x = 0; $x < count($files['name']); $x++){ $name = $files['name'][$x]; if (file_exists($name)) { echo 'File already exist'; } else{ $tmp_name = $files['tmp_name'][$x]; move_uploaded_file($tmp_name, 'uploads/' . $name); } } try it out first, I will help you out with the echo part of your question … | |
Re: Hi, The mysqli instance is this $con = mysqli_connect('localhost','root','password','table'); Then your mysql_real_escape_string should also be a mysqli method like so; $sql="SELECT * FROM contacts WHERE id = '" . mysqli_real_escape_string($q) ."'"; **ADDED LATER:** I just noticed on your index.php you are using the regular mysql connector, try using mysqli on … | |
Re: you need to know the fiverr form processor location to be able to do this outside the API protocol. Look for something like this on their website <form method="post" action="thisLocation/file.php"> You will also need to know the exact form attibutes e.g. <input type="text" name="thisAttr" /> <input type="password" name="thisOneAlso"/> Look for … | |
Re: I am not going to be harsh on you, but have you ever reconsider how strenuous it is to becoming a developer, programmer, or a coder? What you are asking is not even extra hard if you at least try. It is just asking yourself, what would Juan do if … | |
Re: try [this](http://php.net/manual/en/function.mcrypt-encrypt.php) ..give the key to your reciever and provide him with the function to decrypt.. | |
Re: Hi, For my own personal experimentation potential, what is the purpose or benefit of having the data inserted to db as json encoded Vs. the Conventionals? | |
Re: Hi, I don't know if my suggestion will even make sense logic wise, but I think it is more clever if you hold on to the MAC and wait for the PDO::lastInsertId(). Once you get that lastInsertId(), you can set this as a boolean response, and then confirm to insert … | |
Re: Hi, I wrote a simple class in doing this job. The only limitations is that you will have to put all of your function files in certain directory. I wrote this more than some 3 years ago, but I never have the chance to updgrade it. This class was inspired … | |
Re: Hi, >>> try ....>> Open your php.ini file and tell us what are the value assigned to mail directives [mail function] >> we need to see the entire block.. >> go to code.google.com and search for phpmailer Back to your server locate which mailer is installed e.g. mercury, etc >> … | |
Re: Dude, I thought browserscap is just for IIS? I am not sure, but can you double check and make sure you've got the right version for your server.. | |
Re: Please allow me to add my opinion about developing an extensible codes in OOP. It is always nice to start on the right track than going back for some bits and pieces that were left behind. There are 10 design patterns in PHP. I was 13 when I first hit … | |
Re: Hi, You need to ask company x what are the form attributes that are needing response. Plus, I honestly believe thay you should iterate through the xml file items and then apply base64_encode on them.. I am really surprised by no support from company X, it is their API and … | |
Re: hi, for testing purposes only, can you modify this code, $result=mysql_query("UPDATE tblretailer SET ret_name='".$ret_name."', ret_street='".$ret_street."', ret_city='".$ret_city."', ret_phone='".$ert_phone."', ret_fax='".$ret_fax."', ret_user_fname='".$ret_user_fname."', ret_user_lname='".$ret_user_lname."', ret_email='".$ret_email."' WHERE ret_id='".$ret_id."';"); //redirectig to the display page. In our case, it is index.php header("Location: del_updret.php"); to $this_query = "UPDATE tblretailer SET ret_name='".$ret_name."', ret_street='".$ret_street."', ret_city='".$ret_city."', ret_phone='".$ert_phone."', ret_fax='".$ret_fax."', ret_user_fname='".$ret_user_fname."', ret_user_lname='".$ret_user_lname."', ret_email='".$ret_email."' … ![]() | |
Re: sorry, I have to remove my answer.. someone already posted a response on the duplicate version of this question.. | |
Re: Hi, check [this](http://www.windowsazure.com/en-us/downloads/?sdk=php) out.. | |
Re: What is the script that does instant payment notification? It should return pretty much all the information from paypal. You can then use those info. for your database e.g. payment recieved, customer's name, and email address. You just have to deduct the confirmed payments off the outstanding balance, and then … | |
Re: @1a2p3a4c5h6e, !Warning! Codes are not tested... but should work with pretty minor tweaks, just fix my excess parenthesis or missing quotes... Just another humble thoughts of refactoring your codes is to use a framework style routing. To be able to do this, you will have to ** rename your php … | |
Re: You can also try [this](https://gist.github.com/veedeoo/6009290).. Please let me know if there is an error.. I barely updated the script from 2 years ago..The original author never released an update ever since. Here is an example on how to use it..(lifted from the original author's distros) $xls = new Excel('Report'); foreach … ![]() | |
Re: Hi, try running this script <?php echo (function_exists('mail')?'You have mail function enabled in this server': 'No it is not enabled, please contact your hosting provider ASAP'); or <?php phpinfo(); If using the second option above, look for the send_mail directives...e.g. sendmail_from, sendmail_path. If it is not listed on the directives, … | |
Re: you can also try [implementing this](https://defuse.ca/php-pbkdf2.htm). I have this script on my bench tester and I have been trying to hack into it for 3 weeks now, but without success. I think I made an overstatement here. It can be hack, there is no iron clad script.. eveyrthing can be … | |
Re: Hi, *First and foremost, everything that I will write below this paragraph, are not a reflection of any assumption that you don't know anything. I must say this first, because there are members here who would interpret my response as such*. **I am sure you did this already:** Register your … | |
Re: Hi, Are you asking about CNET as in cnet.com? If yes, you will need to read their developers API [documentation](http://developer.cnet.com/docs/read/Home). API is the only way you can provide an acurate search results.. Here is a good example on sending an item request http://developer.api.cnet.com/rest/v1.0/techProduct?productId=31518214&iod=none&viewType=json&partTag=[yourDeveloperKey] | |
Re: Hi, May I know what is your operating system derivatives? Is it windows 8? If possible run it as administrator. Run the WAMP, never mind if it does not start. press alt+ctrl+del ==>click on the task manager.. look for the Apache, mysql, phpMyAdmin ( there should be some application running … | |
Re: hi, I am not sure, what you are trying to make here, but here is an example. Assuming $data is an array.. <?php $data2 = array('c'=>'http://google.com'); ?> <input type="button" value="Click Me Please" onClick="alert('Next Time! You don't have to click me that hard. Click OK if you agree.'); window.location.href='<?php echo $data2['c']?>'"> | |
Re: Hi, Try reading [this](http://tech.dir.groups.yahoo.com/group/simplepie-support/message/4350), and follow the download link. | |
Re: Hi, The best way to find out the exact location of the actual php.ini file use by your server as the server configuration file is to run php info. <?php phpinfo(); ?> Upload the file to your server and then open it with your favorite browser, and look for the … | |
Re: Hi, To make it work you will have to enable allow_url_include to on. However, there is a big security hole associated by allowing this to be on. The best option you can probably use is the [Simple Html Dom](http://sourceforge.net/projects/simplehtmldom/) and the use of cURL. Looking at your codes above and … | |
Re: Hi, Please forgive me if I having doubts about these codes (shown below)... maybe this is right and I am definitely wrong. I am not sure though, maybe I was asleep at school when they cover this type of indexer...honestly, while($row = mysql_fetch_array($result)) { $partners_id[]= $row['web_customised_partners_id']; $image_value[] = $row['image_id']; $image_filename_value[] … | |
Re: check if your colorbox.css and jquery.colorbox.js exists. to use colorbox for youtube videos the href format should be like this <a class='youtube' href="http://www.youtube.com/v/Vo_0UXRY_rY" > [Here is a demo](http://tutpages.com/ytube/youtube3.php), please feel free to look at the source code. Please DO NOT make a direct link on my js and css files. … | |
Re: Don't forget the portables, just in case you need to write codes while in-flight.. I use either nginx or xampp portable for the server. Eclipse and notepad++ as editor. All of them fit in one little flash drive. On a desktop environment, I practically tried all of the things mentioned … | |
Re: Hi, Yes, that would be a good choice. The latest Symfony and Zend frameworks put everything into an array.. I don't have any symfony or Zend in front of me at the moment, but as far as I can remember while working with these two frameworks, both have sessions and … | |
Re: Hi, You need to provide us what date format you want to validate with. There are few of them you must decide.. | |
Re: try using an iframe,.. not ideal, but that is all I can think of right now.. something like this echo '<iframe>'; echo html_entity_decode($body); echo '</iframe>'; seach google for iframe css to style the iframe.. | |
Re: Hi, This <?php echo $video; ?> Should have a value of file location and extension e.g. video.mp4. **Some Concerns about your codes..** Where is your .ogg video for firefox, opera and chrome browser support? If you don't have enough space to spare for the remaining video format, I think it … | |
| |
Re: Hi, Are you running the script on the server or locally (on your desktop)? If so, you will need a developer server like XAMPP , easyPHP, or WAMP the choice is yours.. PHP cannot be parse by the browser alone. If you are running it in NGINX http server, then … ![]() |
The End.