2,113 Posted Topics
Re: 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 Cards](https://youtu.be/DbWcdaeYrsI) by Jeff Beal. Another one I really like, but about an Italian show is the theme song for [Inspector … | |
Re: 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 ![]() | |
Re: The error message suggests to enable the web OAuth login, so go to your *Facebook App dashboard > Settings > Advanced*, scroll to **Client OAuth Settings** and set **Web OAuth Login** to **Yes**, then it should work. | |
Re: Have you read their documentation? * http://codex.wordpress.org/Moving_WordPress * https://www.godaddy.com/help/moving-small-wordpress-sites-to-godaddy-6110 | |
Re: The jsfiddle example makes use of an external resource along with jQuery: * http://multidatespickr.sourceforge.net/ By adding this it should work. ![]() | |
Re: Hi! Add to the **sendMail()** method: $mail->SMTPDebug = 2; # switch to 3 or 4 to increase verbosity Then change the return of the **sendMail()** method to: if( ! $mail->Send()) return $mail->ErrorInfo; return TRUE; And in **actionSendMail()** replace the previous *sending mail* code block with: //Sending mail if($result = $this->sendMail($to, … | |
Re: Hi all, music for me is something special, I'm always in search for new music: new to my ears. I listen primarly Bach: search for Goldberg Variations or the Toccatas by Glenn Gloud, the Cello Suites by YoYo-Ma and Sviatoslav Richter's concerts. Or Chopin by Brigitte Engerer. Rachmaninoff by Richter … | |
Re: Hi, you could use an **each** loop: $('#updated_status').on('change', function () { var e = $(this).val(); $.each(feedit, function (key, val) { if (e == val.value) { $('#comments').val(val.areatext); } }); }); Live example: http://jsfiddle.net/o3g8sp6c/ | |
Re: Hi, try to change the LIKE condition to: LIKE '".$item."%' By adding the `%` wildcard you can match similar text: * https://dev.mysql.com/doc/refman/5.6/en/string-comparison-functions.html#operator_like If it still does not work test your query directly into a MySQL client. Besides: escape also feedTipo. | |
Re: Depends on the structure of the array and the data type, you could use `implode()` to flat the array to a string: $a = ['a' => 123, 'b', TRUE, 'c', NULL, 'd', 'e' => [1,2,3]]; print_r(implode(', ', $a)); # returns 123, b, 1, c, , d, Array But as you … ![]() | |
Hi Dani, I pushed the cash button one month ago and since then the status is `Last Cash Out: Pending for $21.63`, is there something wrong? I remember there was a bug related to the reward system: * https://www.daniweb.com/community-center/daniweb-community-feedback/threads/494132/cannot-cash-out-reward-points#post2161746 | |
Re: Hi, use the **href** attribute to point the browser to the destination page: <a href="another_page.html">Link to another page</a> Some additional information: * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a * https://developers.whatwg.org/links.html#links * http://www.w3.org/TR/html5/links.html Is this that you were searching for? | |
Re: > Haven't used CI in years so can't remember if array variables passed to a view are extracted or not. You're passing $data['error'] and picking it up as $error in the view. Is this right? I can't remember. Hi! Yep, that's correct, as long that you feed the $data array … ![]() | |
Re: Assuming that **$path** is relative to the CodeIgniter main **index.php** file, then change path to: $path = FCPATH . 'uploads/path/'; The constant `FCPATH` is defined in the index.php file. Then simply loop the **$files** array against `unlink()`: array_map('unlink', $files); And that's all. | |
Re: Hi, Try by setting two separated cURL requests that share the same connection. There is a [comment in PHP docs](http://php.net/manual/en/function.curl-setopt.php#114571) that can be helpful: > NTLM authorization is connect-based, not request-based. If the connection is not kept alive and re-used, cURL can never complete the request. So try: $ch = … | |
Re: By using `$session->getToken()` you get the access token. For example when you perform the login request you use a script like this: <?php session_start(); require_once "credentials.php"; require_once "autoload.php"; use Facebook\FacebookSession; use Facebook\FacebookRequest; use Facebook\GraphUser; use Facebook\FacebookRequestException; use Facebook\FacebookRedirectLoginHelper; $redirect_url = "http://localhost:8005/logged.php"; $helper = new FacebookRedirectLoginHelper($redirect_url, $appId, $appSecret); echo '<a href="' … | |
Re: Hi, you cannot do this, the HTML specification does not allow to set a value for the input file type element. Otherwise a website could try to access to any file in the local system of the client. Here you can see the attributes that you can set: * http://www.w3.org/TR/html-markup/input.file.html | |
Re: Hi, read this thread: * https://www.daniweb.com/web-development/php/threads/497313/semding-mail-using-php-mail- It may help you. | |
Re: Add `echo $ex->getMessage();` to the catch statement: catch(Exception $ex) { echo $ex->getMessage(); } If something is wrong you should get some information that will help you to debug. | |
Re: So what happens, in your code, when you switch between the xml files? Can you show the code? | |
Re: Try to add the (root) slash to the link: <link rel="stylesheet" type="text/css" href="/resources/css/docTech25Banner.css" /> Otherwise the link will be relative to the current path, if you are in `/contact/`, for example, the browser will expect to find the css file inside: /contact/resources/css/docTech25Banner.css And so on for each browsed path of … | |
![]() | Re: Hi, try: find /home/scott/xyz -name "*.log" ! \( -name "access.log" -o -name "server1.log" \) ![]() |
Re: Hi, try `group_concat()` with **group by**: SELECT group_concat(Description) FROM tablename GROUP BY Section; | |
Re: Hi, I guess you are mixing things here: when you submit input through a form, you get a string, so here you are going to parse a string not a variable, only by **eval**uating the string you could execute it and get the variable value, but this is risky because … ![]() | |
Re: Hi, change **TYPE** with **ENGINE** and it should work. **TYPE** has been removed from current syntax: https://bugs.mysql.com/bug.php?id=17501 | |
Re: Hi, at basic you should include the headers to define **From** and **Reply-To**, check example 2 of the documentation: * http://php.net/manual/en/function.mail.php#example-3788 Where **From** is one of your emails and **Reply-To** the sender email and you will need a mailer application to send the message, like **sendmail** which is usually installed … | |
Re: Hi, the best solution would be for example1.com to serve a page where all price changes are published, so that example2.com needs to query only one time and not X number of times... if you have 10000 articles it means you are going to open that amount of connections against … | |
Re: Hi, you have to use `set_value()` from the **Form helper**: * http://www.codeigniter.com/user_guide/helpers/form_helper.html#set_value Which basically works like this: <input type="text" name="first_name" value="<?php echo set_value('first_name', 'default value'); ?>" /> Where the **first argument** is the value assumend by the form after a submission, so in case of POST data it will repopulate … | |
Re: You can set a cron job that calls a script that will execute the query to change the status, or if using MySQL you can use the **event scheduler** of the database, for more information read these links: * http://www.sitepoint.com/how-to-create-mysql-events/ * http://dev.mysql.com/doc/refman/5.6/en/events-configuration.html * http://dev.mysql.com/doc/refman/5.6/en/create-event.html * http://dev.mysql.com/doc/refman/5.6/en/drop-event.html | |
Re: Hi! Dani there is a problem with the spell checker, it bars all the words. Here's a screenshot: Strange part is that after inserting the attachment the issue disappeared in this post, note that the first line is now fine:  But by adding some text **after** the … | |
Re: Hi, > geopy.exc.GeocoderServiceError: HTTP Error 500: Internal Server Error from [documentation](http://geopy.readthedocs.org/en/latest/#geopy.exc.GeocoderServiceError) of geopy you can read the meaning of this exception: > There was an exception caused when calling the remote geocoding service, and no more specific exception could be raised by geopy. When calling geocoders’ geocode or reverse methods, … | |
Re: Heh! Good for you, at your age I barely knew about HTML... > It's like a fear to be intimidated by co-workers that I'm a novice or something like that. Never fear, just be keen to learn from others. It can only improve your skills. ![]() | |
Re: The third argument for `update()` must be a [WHERE condition](http://www.codeigniter.com/userguide2/database/active_record.html#update) (for example: `'id = 4'`), instead with `update_batch()` the third argument is the index key, so try to change your code to: $this->db->update_batch('deal_images', $dataimages, 'merchant_deals_id'); And it should work. | |
Re: Hi, it seems the same issue you had last month: * https://www.daniweb.com/web-development/php/threads/495015/mail-php-problem The sender email must be authenticated before sending the email. The email to authenticate is the one set in the FROM header, i.e. the one defined here: $headers = "From: website@website.com" . "\r\n"; Free hostings solves this problem … | |
Re: Hi, to verify if your setting is applied you can use: echo ini_get('max_execution_time'); Questions: * The timeout error is at PHP or database level? * Can you paste the error message and error code here? * And, if pertinent, which database and version of it, are you using? ![]() | |
Re: Hi, `Date` in the select list is a reserved word, you can use it if you wrap it in backticks. Docs: * https://dev.mysql.com/doc/refman/5.6/en/keywords.html | |
Re: You can use the same form, which by the way seems fine, even when the file uploads are disabled you should still receive the POST body request from the form. Can you show the receiving script? Some docs that could be useful: * http://php.net/manual/en/ini.core.php#ini.file-uploads * http://php.net/manual/en/features.file-upload.common-pitfalls.php | |
Re: So what is the problem? Do you have a specific doubt? It seems you have to create a form, read the received input and display the result, it's easy if you read the documentation: * http://php.net/manual/en/tutorial.forms.php | |
Re: > Does this information indicate the problem is with the PHP code, or the incoming feed? It seems related to the XML document, not to PHP, otherwise the error would be at PHP level. Could you share the XML? | |
Re: It's a configuration file for **npm**, so that it can install the correct versions of each required dependency of your application and define some other information. A dependency can be a library that you want to add to your application, you have to just define the link of the git/svn … | |
Hi, when trying to access this thread: * https://www.daniweb.com/web-development/php/threads/496793/security-web-architecture the browser returns `ERR_TOO_MANY_REDIRECTS`. | |
Re: Hi, excuse me but I don't understand: are you talking about the connection between client and server? Do you wish to use two different domains for backoffice and reporting application? About files what you want to avoid? | |
Re: Hi! Which is the error? The thread title is truncated. And, can you share your code and explain where the issue happens? I suppose you're using [their library](https://github.com/campaignmonitor/createsend-php), is this correct? | |
Re: Hi, you can use `rm -rdf *` it will remove all files and directories recursively. For more information about the options read the manual: `man rm` and be careful, always check current path, as it can hurt. | |
Re: By collecting all the remaining words (second & third of each line) into an array you could loop it against the decoding function. If in doubt, please, provide an example of encoded file. | |
Re: Hi, you could loop the `$invoice->addItem()` method, but this is part of a class I don't have access to, and I don't know how this works (could you share more about it?). Anyway, try to check the documentation of the `$invoice` class, to see if it handles arrays of if … | |
Re: **@Devi_3** When you write: > after successful insert in database it value shows as "james/bond" You intend this is how the input is actually saved in the database or how is it returned by the retrieving script? Also: could you show the insert query? The escaping function shouldn't change the … | |
![]() | Re: Hi, I think the same happens here: * https://www.daniweb.com/web-development/rss-web-services-and-soap/threads/495356/soap-query-parameter-head-ache-#post2167904 I noted the issue two weeks ago, when posted the code was correctly indented, a part this I saw also few posts of mine in the same conditions, but at the moment I don't remember which ones. Also, from `profile/posts` the … |
Re: Check the documentation on MySQL site, here are the links: * https://dev.mysql.com/doc/refman/5.6/en/stored-programs-views.html * https://dev.mysql.com/doc/refman/5.6/en/create-procedure.html * http://dev.mysql.com/doc/apis-php/en/apis-php-mysqli.quickstart.stored-procedures.html The last link provides some examples with the PHP MySQLi API. |
The End.