1,003 Posted Topics
Re: This is possible with ajax and jquery on the client side. While on the server side, ASP, PHP, python, ruby, and node.js. | |
Re: if you are using PHP then you can probably use file_get_contents and store the output into your mysql database. Before doing that make sure to use base64_encode the html source to prevent any complications. Use LONGTEXT, Others may have different ways of doing this. | |
Re: In addition, you need to check if $_GET['d1'] is set, before assigning to variable $d1. Otherwise, the parser will assume it is set. You can wrap it up like this if(isset($_GET['d1']) && isset($_GET['d2])){ ## rest of codes here } | |
Re: take a look [here](https://www.daniweb.com/search/query/0?q=pagination+php#gsc.tab=0&gsc.q=pagination%20php&gsc.page=1) and let us know. | |
Re: Here is a simple derivative of the linked thread above. I want to let you know that this is also a hybrid ( PHP and Javascript). I don't normally use server side time in displaying user time zone related content, but we need a reliable time reference. our simple function.. … | |
Re: I really don't know why it has to be on the front-end. if that is the intension of the OP, IMHO , we don't tell the user if something is wrong in the back-end unless it is a user related such as 'we are conducting a maintenance at this time, … | |
Re: is it installed in Program Files or is it somewhere in the root drive e.g. c:/yourWAMP? Upated: put this on a new php page <?php phpinfo(); ?> direct your browser to this page.. What is the value of the compiler used in your current PHP? Normally, php 5.x.x are compiled … | |
Re: Just the thought of having a production site hosted inside the xampp can make me cringed. [Uniform server](http://sourceforge.net/projects/miniserver/) is far better than Xampp in terms of production website security. However, that is not the right way serving websites for the web. If you are using windows, there is an Oracle … | |
Re: the error says it all mysql_real_escape_string() . page number is not a string, it is an integer. So, your validation should focus on is_numeric and FILTER_SANITIZE_NUMBER_INT. Make sure to remove ., +, - before evaluating which page should be deliver to your user. | |
Re: I am not sure if this is exactly what you are looking for, but in PHP it is called transaction. The mysql ENGINE directives must be set to innodb. Normally, if you are using PHP MVC frameworks like fuel PHP, laravel, and even CI (lower level), these frameworks are pre-packaged … | |
Re: @D, Luckily, I always keep screenshots on my thumb drive and desktop. Here we go Mr. L.D.A yes it is a win executable or msi. The application is pretty lightweight. We experimented using a CSS framework like bootstrap. We used the tideSDK with Titanium SDK. Unlike PHP-GTK, we have more … ![]() | |
Re: current time minus the time of the event. If the difference between these two is greater than or equal 10 minutes, you must set your user free. | |
Re: validate, sanitize, check for the referrer. | |
Re: > Warning: Cannot modify header information - headers already sent by (output started at /home/blahblahblah.php on line 24" try adding exit; after the header location.. Another alternative: if you want to redirect after the alert, then redirect can be wrap with <script> </script> as in echo "<script type=\"text/javascript\">alert('item succesfully added'); … | |
Re: do as suggested above and then maybe you want to experiment something like this... if you know where to find httpd.conf on your server, then you can add .phtml into your directory index directives like so DirectoryIndex index.php index.phtml index.html index.htm index.cgi by default php can parse .inc, .tpl, php3 … | |
Re: can you confirm that this is the right file location? <script src="vendor/videojs/video.js/dist/video-js/vjs.youtube.js"></script> | |
Re: You have arrived. Welcome to Daniweb. Your project is looking good and good luck to you. | |
Re: IMHO, the hashed user_pass is not necessarily be the subject of un-needed iteration. if $md5_1=md5($_POST['user_pass']); is equal to 'password', then the hashed password is now equal to $md5_1 = '5f4dcc3b5aa765d61d8327deb882cf99'; and this print_r(str_split($md5_1)); will deliver $md5_1 as an array. Array ( [0] => 5 [1] => f [2] => 4 … | |
Re: I truly admire people who can give updates when they found the solution. Thanks. | |
Re: did you include the [Javascript SDK](https://developers.facebook.com/docs/reference/javascript/) right after the <body> tags? for example, <body> <script> window.fbAsyncInit = function() { FB.init({ appId : 'Put__Your_Own_App_ID__Here', xfbml : true, version : 'v2.1' }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = … | |
Re: I don't think session_start() is needed in the constructor. If you do this after logging out print_r($this->session->all_userdata()); do you still get something ? You can try modifying this code 'password' => $this->input ->post('password '), 'logged' => 1 to this 'password' => $this->input ->post('password'), 'logged' => TRUE another question I have, … | |
Re: how about [this](http://devzone.co.in/export-mysql-data-into-excel-or-csv-format/)? Will it help? | |
![]() | Re: I totally agree with cereal. That should work. The script from github was written by PHil Sturgeon. The same Phil who wrote the Pyro CMS build on top of CI and CI core contributor. ![]() |
and the new home for codeIgniter is (drumbeat please... and another drumbeat) ...The [British Columbia Institute of Technology (BCIT)](http://www.bcit.ca/) in Vancouver, Canada. Please read the official announcement from ellislab [here](https://ellislab.com/blog/entry/your-favorite-php-framework-codeigniter-has-a-new-home). IMHO, the decision made by the EllisLab is in the best interest of CodeIgniter. Although, I am not sure how … | |
Re: I am using the fig-standard auto loader. Pretty much all frameworks today are using the [proposed loading standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md). to call static method of class with namespace, you can easily do it like this.. say we have a MyClasss with namespace namespace App\Doer; class MyClass { public static function just_do_it() { … | |
Re: how about using jquery to get the browser information and then submit the collected information via ajax to the controller method and then assign them to session. | |
Re: Hi, You will have to let us know your server environment in which this script is running. For example.. wampp, xampp, or something else.. Looking at your codes above, it is utilizing the gmail account credentials. If you are running this script in production server environment, you will have to … | |
Re: @UK-1991, thanks for your message. I am confident that broj1 can deliver the solution to your problem. | |
Re: is this google wallet related? | |
Re: Do as suggested by JorgeM. While waiting for the challenging questions, spend some time reading some good PHP books from O'Reilly Media. **Pretty much inspired by what I have been through after all these years.** Attempt to create an application based on what you have learned. Critique the quality of … | |
Re: that is pretty nested. Try using[ switch statement](http://php.net/manual/en/control-structures.switch.php).You can refactor the $tbl_code==976 to 983 as one query using PHP range function e.g. range(976,983). range will give you an array. So, it would be nice if you can create a simple function to find out if the $tbl_code is in array … | |
Re: Do as suggested above and please don't be lazy searching it on google first. Some tutorial may not tell you that you need to enable the EPEL repository to be able to install phpMyAdmin. You will be needing [this](http://www.webresourcesdepot.com/10-free-web-hosting-control-panels-to-manage-servers-easier/), and I highly recommend virtualmin and webmin. | |
Re: as already been suggested, stay away from using those short tags. I hate adding more confusion to a broken source codes, so I have decided to write a pretty simple quidelines on the basics of CI. You can either do it like this or follow the tutorials available online. Before … | |
Re: > I am sure I missed something somewhere in the changes been made in the newer versions of php and apache. No that's not it.. we can't blame the car manufacturer just because we forgot to put fuel. I know there are some problems with xampp and windows 7 combination, … | |
Re: I am just guessing here and I hope someone can look at your code thoroughly I suspect while loop is running to infinite cycle. $done = 0; while($done < 1){ for($c2 = 0; $c2 < count($open_nodes); $c2++){ } } It will continue to run who knows until when. While codes … | |
Re: You are doing fine I think. On the other hand, 443 is normally the default Virtual SSL host as defined in httpd-ssl.conf <VirtualHost _default_:443> the same port number is use by default in global SSL port to listen to. common in all apache.. #################### Global SSL ########################## Listen 443 https … | |
Re: you can achieved this by storing the member's status on the database. for example, + user_id + user_name + status + couple_id + +---------+-----------+---------+-----------+ + 1 + husband + married + 2 + +---------+-----------+---------+-----------+ + 2 + wife + married + 1 + +---------+-----------+---------+-----------+ So if either one or both … | |
Re: return the value before the index. ![]() | |
Re: can't you use a pagination for this? | |
Re: Hey, Mr. LDA AKA geegler from github welcome to Daniweb. Can you please show us how to develop an application using a PHP router e.g. front controller and dispatcher. I wrote a tutorial on basic MVC, but it is pretty much the same classes that we did long time ago. … | |
Re: can you try something like this ? $command = 'put all command here'; shell_exec($command); if you want it to work in the background, then you can do something like this shell_exec(" $command > /dev/null "); | |
Re: Hello and welcome to Daniweb. I am not sure, but I think you can post on geek's lounge for feedback. | |
Re: not sure if [this](http://jsfiddle.net/nzYAW/) will help, but there is no harm in sharing. | |
Re: Hi and welcome to Daniweb Odyssey. @markjonson that is pretty clever way of posting your spam on Daniweb. | |
The End.