-
Replied To a Post in Change the time in the variable
Hi, use DateTime and DateInterval, like this: <?php $time = '05:00 PM'; $dt = (new Datetime($time))->add(new DateInterval('PT5H'))->format('g:i A'); echo $dt; # outputs 10:00 PM For more information check the documentation. … -
Replied To a Post in Uploading Image as JSON
Just an update to my previous post (besides I think I got a downvote for this typo haha): I wrote about **Google Picasa** but I intended **Google Photos**, which has … -
Replied To a Post in mysql call statement with mysqli
Ok, a part those `exit;` at lines 25 and 32 I don't see anything wrong, those will stop the execution of the script, in one of the cases it setting … -
Replied To a Post in Paypal money transfer
Hi, yes you can: * https://developer.paypal.com/docs/classic/api/adaptive-payments/Refund_API_Operation/ the above link refers to the Classic API, for the REST API check the *Sale Transactions* and the *Refunds* sections at: * https://developer.paypal.com/docs/api/ -
Replied To a Post in mysql call statement with mysqli
At line 1 instead of: $select =mysqli_query($db,"SELECT created, views_count, message, category_id from table AS M "); write: $select = "SELECT created, views_count, message, category_id from table AS M "; So … -
Replied To a Post in How to check existing row in php ?
Hi, you have to perform a select query inside the methods `isUserExistscustomer()` and `$this->isUserExistsmobile()` and return boolean TRUE or FALSE. For example: public function isUserExistsmobile($mobile_no) { $stmt = $this->conn->prepare("SELECT id … -
Replied To a Post in mysql call statement with mysqli
Hi, since you set $Filter on line 5 the condition on line 7 will never verify, so you could remove it. What you should do is to verify if the … -
Replied To a Post in add to cart not working
Use your editor to find the string `product_id`. Looking at your pasted code I don't see it, but probably somewhere you have `$_POST['product_id']` instead of `$_POST['productid']`, or set by another … -
Stopped Watching implementing solvemediacaptcha on yourls installation
can i get some help with installing solve media captcha in yourls? here is the guide for solvemedia, http://wsnippets.com/integrate-solve-media-captcha-php/ YOURLS blog on how to add recaptcha http://blog.yourls.org/tag/captcha/ what I've done … -
Began Watching implementing solvemediacaptcha on yourls installation
can i get some help with installing solve media captcha in yourls? here is the guide for solvemedia, http://wsnippets.com/integrate-solve-media-captcha-php/ YOURLS blog on how to add recaptcha http://blog.yourls.org/tag/captcha/ what I've done … -
Replied To a Post in Uploading Image as JSON
Hi, data loss means a file corruption because the server misses some packets from the transmission (for example caused by a timeout), in this case the uploaded file will result … -
Replied To a Post in Telegram Bot Sending photos
Ok, at the moment I cannot test their API, but I see from your request that curl will set `Expect: 100-continue`, if their server does not reply `HTTP/1.1 100 Continue` … -
Replied To a Post in SQL Array
Hi, instead of: while($_SESSION['application']['food']) which acts as an endless loop, because it's equal to `while(TRUE)`, write: foreach($_SESSION['application']['food'] as $food) { mysql_query("INSERT INTO tbl_user_detail (food, user_id) VALUES ('".$food."', '".$user_id."')") or die(mysql_error()); … -
Replied To a Post in Telegram Bot Sending photos
Hi! It happens because you are not appending the file to the body of the request, if you open netcat on `localhost:8005`: nc -l localhost 8005 And change the $url … -
Replied To a Post in search any product using select option without using submit button in php
Add a javascript event listener, when the form changes submit the query through an AJAX request. To make it work correctly separate the query script so that it returns only … -
Replied To a Post in Creating mysql views from class in rails
Hi, I haven't used Rails for ages, but I think you probably need `execute` to run a raw query, for example: def up execute <<-SQL CREATE VIEW rocket_current_activities AS SELECT … -
Replied To a Post in Want to add more then 1 images
You're looping the $_POST array, instead you have to loop the $_FILES array. Follow the documentation and the comments at this page: * http://php.net/manual/en/features.file-upload.multiple.php If still in doubt create a … -
Replied To a Post in how to set radio button in codeigniter??
Uh, sorry, due to chosen forum and title I thought it was related to the framework, not to the CSS rules. It happens probably because of this rule: .register form … -
Replied To a Post in how to set radio button in codeigniter??
Hi, which version are you using? With version 3 you can use `set_checkbox()` instead of `set_value()`. In this case write something like: <label for="sex_1"> <?php echo form_radio('sex', 1, set_checkbox('sex', 1), … -
Replied To a Post in Not sure which technology to use
Just an add: maybe this is something you don't need at this stage, but regarding the database consider also PostgreSQL which has a really great support for geocoding & co.: … -
Replied To a Post in if condition not executing
Hi, you have to use the comparison operator `==`, at the moment you are using the assignment operator `=`. -
Replied To a Post in Facebook PHP SDK v5 errors on posting into facebook page
Ok, you have to fix two things here: **A)** add `publish_pages` to the scope: $permissions = ['publish_actions', 'manage_pages', 'email', 'publish_pages']; **B)** the third argument for `$fb->post()` must be the page … -
Replied To a Post in Not So New, but Glad to Be Here
Welcome! -
Replied To a Post in Facebook PHP SDK v5 errors on posting into facebook page
You have to add the appropriate permission in order to post to the timeline, this is done by appending the `scope` parameter to the login link, in your case the … -
Replied To a Post in help with plugin using oxwall
> so what am i to do to make this work hun I'm afraid you cannot do much with it. Maybe by rewriting the urls through .htaccess. Not tested. The … -
Replied To a Post in Callback function not working in CI 3
Hi, the first argument of `set_message()` must match the rule name, i.e. the callback, not the field name, so change it to: $this->form_validation->set_message('check_captcha', 'Your code did not match!'); You can … -
Replied To a Post in show retrieve data in drop down list in codeigniter
Use the Form helper, read the documentation for more information: * http://www.codeigniter.com/user_guide/helpers/form_helper.html#form_dropdown If still in doubt, show the view code. -
Replied To a Post in help with plugin using oxwall
Hi, it does not work because of the exception at line 17 of your log: OW Debug - Exception Message: There is no active plugin with key `meet` File: /home/jktempla/public_html/fabcouples/ow_core/plugin_manager.php … -
Replied To a Post in How to insert multiple rows of student records scores in a while loop in a
Try to add backticks to the `###` column. MySQL for unquoted column names expects: 1. basic Latin letters, digits 0-9, dollar, underscore 2. Unicode Extended: U+0080 .. U+FFFF The character … -
Replied To a Post in how to show retrieve data from database into text field in codeignitor
The model is returning an object, which is passed to `$this->user_data` array with the index key **result** so, in the view file write: foreach($result as $row) { echo $row->id . … -
Replied To a Post in Hide values
If you use AJAX yes, you can, because it would be managed by a remote PHP script and sessions. But to get more help explain better your goal. -
Replied To a Post in Cannot Open Access 2007 MDB file
Hi, maybe one of the hard drive sectors in which the file was registered got corrupted, you could try to fix the issues through scandisk. -
Began Watching Site online with XXAMP
My website for my bussinuess is almost complete. I am using wordpress and I am also using my sql (I don't know if I should state that) ,but I want … -
Replied To a Post in Media Query Not Working
Ok, thanks for the update. Bye! -
Replied To a Post in Media Query Not Working
Could you paste the full stylesheet? -
Replied To a Post in Media Query Not Working
Are you sure you're not missing some closing parentheses in the first block? I don't see how both rules could apply when the second range is not reached by your … -
Replied To a Post in What are your top TV themes?
In addition to previous suggestions, I also like [Cheers](https://youtu.be/o7U3lo80YrQ) theme song by Gary Portnoy and few that are more recent: [30 Rock](https://youtu.be/l21Dl96ESok) by Jeff Richmond ([extended version](https://youtu.be/GXazvySDWIc)) and [House of … -
Gave Reputation to diafol in What Music Do People Like?
>There's no "bad" music. Try listening to One Direction. Or Robbie Williams. Get me a vombag. -
Replied To a Post in Where do I save a Cron Job file on my site?
> Would setting the folder and file permission to 711 suffice? Hmm, no this doesn't solve, because the request will be executed through the TCP/IP stack, so the owner of … -
Replied To a Post in Where do I save a Cron Job file on my site?
Uh, so how is this job executed? Usually a cron job is listed into a crontab file and executed by the cron daemon running in the server, so it's an … -
Replied To a Post in Delete a file from folder in laravel
Here: if(!is_null($contact)) { $contact->delete($path); } Place: if(!is_null($contact)) { File::delete($path); $contact->delete($path); } Or `Storage::delete()` if using Laravel 5. -
Gave Reputation to diafol in Delete a file from folder in laravel
If you're using L5, then you can use the Storage facade - `Storage::delete()`. `File::delete()` if L4.2 -
Replied To a Post in Delete a file from folder in laravel
Ok, just add the method to delete the file: follow diafol's suggestion depending the Laravel version you're using. -
Replied To a Post in Facebook Graph API: How to get AccessToken in PHP SDK v5
Ok, the URI registered in your script and in your App defines the port number: http://localhost:80/feedreader/fdposter.php But in your browser (screenshot) the port number is missing: http://localhost/feedreader/fdposter.php If you're using … -
Replied To a Post in diference between two dates
In Javascript this is never a simple task, at least for me, so I prefer to stick with libraries. While waiting for more appropriate suggestions, try with the `difference()` function … -
Replied To a Post in Where do I save a Cron Job file on my site?
Hi! If you can, place it outside the public_html directory, so it cannot be executed by requesting the file through the web. Otherwise write this in top of the script: … -
Replied To a Post in Delete a file from folder in laravel
Can you show your updated code? Do you got any errors? If in debug mode you should get the stack trace. -
Began Watching iptbales to monitor download and upload data
Hi , I would like to monitor upload and download datas of devices connected to the router. I am using the following iptables rules: sudo iptables -N DMon sudo iptables … -
Replied To a Post in how to move wordpress website from localhost?
Have you read their documentation? * http://codex.wordpress.org/Moving_WordPress * https://www.godaddy.com/help/moving-small-wordpress-sites-to-godaddy-6110 -
Replied To a Post in Delete a file from folder in laravel
The path defined in `File::delete($path)` must include the filename: $path = '../app/uploads/' . $contact->filename; Also you should use the helper to set the correct path: * http://laravel.com/docs/4.2/helpers#paths
The End.