2,113 Posted Topics

Member Avatar for Reverend Jim

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 …

Member Avatar for pritaeas
0
150
Member Avatar for Guy On

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

Member Avatar for diafol
0
4K
Member Avatar for Hilal2009

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.

Member Avatar for Hilal2009
0
2K
Member Avatar for shashigowda

Have you read their documentation? * http://codex.wordpress.org/Moving_WordPress * https://www.godaddy.com/help/moving-small-wordpress-sites-to-godaddy-6110

Member Avatar for shashigowda
0
236
Member Avatar for AntonyRayan

The jsfiddle example makes use of an external resource along with jQuery: * http://multidatespickr.sourceforge.net/ By adding this it should work.

Member Avatar for diafol
0
3K
Member Avatar for Gideon_1

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, …

Member Avatar for Gideon_1
0
1K
Member Avatar for DaveAmour

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 …

Member Avatar for Aeonix
0
687
Member Avatar for rsleventhal

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/

Member Avatar for JJenZz
0
2K
Member Avatar for paulo.guedes1992

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.

Member Avatar for cereal
0
175
Member Avatar for AntonyRayan

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 …

Member Avatar for diafol
0
173
Member Avatar for cereal

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

Member Avatar for cereal
0
438
Member Avatar for Elvi

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?

Member Avatar for cereal
0
167
Member Avatar for vizay
Member Avatar for cereal
0
55
Member Avatar for Ventech_IT

> 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 …

Member Avatar for diafol
0
295
Member Avatar for praba_web

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.

Member Avatar for cereal
0
2K
Member Avatar for BenWard

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 = …

Member Avatar for BenWard
0
1K
Member Avatar for Hilal2009

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="' …

Member Avatar for Hilal2009
0
3K
Member Avatar for praba_web

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

Member Avatar for praba_web
0
11K
Member Avatar for jaiuriyal

Hi, read this thread: * https://www.daniweb.com/web-development/php/threads/497313/semding-mail-using-php-mail- It may help you.

Member Avatar for Ventech_IT
0
277
Member Avatar for Hilal2009

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.

Member Avatar for cereal
0
1K
Member Avatar for wawammm

So what happens, in your code, when you switch between the xml files? Can you show the code?

Member Avatar for cereal
0
210
Member Avatar for DocTech25

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 …

Member Avatar for almostbob
0
249
Member Avatar for sachin19

Hi, try: find /home/scott/xyz -name "*.log" ! \( -name "access.log" -o -name "server1.log" \)

Member Avatar for sachin19
0
201
Member Avatar for AntonyRayan

Hi, try `group_concat()` with **group by**: SELECT group_concat(Description) FROM tablename GROUP BY Section;

Member Avatar for cereal
0
181
Member Avatar for Kritika_1

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 …

Member Avatar for diafol
0
1K
Member Avatar for janicemurby

Hi, change **TYPE** with **ENGINE** and it should work. **TYPE** has been removed from current syntax: https://bugs.mysql.com/bug.php?id=17501

Member Avatar for janicemurby
0
266
Member Avatar for shashigowda

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 …

Member Avatar for almostbob
0
499
Member Avatar for hell hansen

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 …

Member Avatar for hell hansen
0
243
Member Avatar for sarath.lun

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 …

Member Avatar for cereal
0
773
Member Avatar for praba_web

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

Member Avatar for cereal
0
107
Member Avatar for Dani

Hi! Dani there is a problem with the spell checker, it bars all the words. Here's a screenshot:![spell.png](/attachments/large/0/ff1c57763395d10bf03c9488d89d1a7c.png "align-center") Strange part is that after inserting the attachment the issue disappeared in this post, note that the first line is now fine: ![spell_2.png](/attachments/large/0/5a7e13fa9dab903836273de44e17d53f.png "align-center") But by adding some text **after** the …

Member Avatar for Dani
2
444
Member Avatar for 승환

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, …

Member Avatar for cereal
0
1K
Member Avatar for Gideon_1

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.

Member Avatar for diafol
0
497
Member Avatar for praba_web

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.

Member Avatar for praba_web
0
9K
Member Avatar for cristian.stilpeanu.1_1

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 …

Member Avatar for cereal
0
1K
Member Avatar for Nikhilesh_1

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?

Member Avatar for diafol
0
259
Member Avatar for Stefce

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

Member Avatar for cereal
0
445
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
0
308
Member Avatar for Babaty_1

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

Member Avatar for cereal
0
107
Member Avatar for DavidB

> 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?

Member Avatar for DavidB
0
500
Member Avatar for phoenix254

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 …

Member Avatar for cereal
0
186
Member Avatar for cereal

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`.

Member Avatar for Dani
0
198
Member Avatar for solomon_13000

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?

Member Avatar for cereal
0
257
Member Avatar for abhi10kumar

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?

Member Avatar for pritaeas
0
501
Member Avatar for hefaz

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.

Member Avatar for hefaz
0
365
Member Avatar for Tko_1

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.

Member Avatar for Tko_1
0
244
Member Avatar for ribrahim

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 …

Member Avatar for ribrahim
0
2K
Member Avatar for Devi_3

**@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 …

Member Avatar for Gideon_1
0
283
Member Avatar for diafol

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 …

Member Avatar for cereal
2
357
Member Avatar for ramsiva

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.

Member Avatar for ramsiva
0
372

The End.