• Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    Set: $mail->SMTPDebug = 4; It should return a verbose output of the telnet session. If it does not help you to find the error, paste the result here. By the …
  • Member Avatar for cereal
    cereal

    Stopped Watching Resolve a Memory Leak

    I need help in resolving a memory leak found using JavaScript. What the program does is auto scroll the videos and when it reaches the center (supposed to be a …
  • Member Avatar for cereal
    cereal

    Began Watching Modify 'FileMatch' in the httpd.conf in Apache

    Hello All, I need to modify the default settings for the filesMatch in the apache httpd.conf file from - <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> so …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Foreign Keys to multiple table

    > But, it generates error. Which error? It could be the definition of the columns, for example `userrole.userid` here is BIGINT but in `users.id` is INT, the same applies to …
  • Member Avatar for cereal
    cereal

    Replied To a Post in CSS PRINT

    Hi, show an html output of the page, not the PHP source, **and** the contents of **print.css**. By the way this: <link href="print.css" rel="stylesheet"> Should be referenced as print: <link …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    Include the **extras** directory into `phpmailer/`. That solves the `require_once` error. Then retry. > ok, then which authentication type should I use? If in doubt ask to the mail server …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    Ok, this is a problem: 2014-08-21 22:38:07 CLIENT -> SERVER: AUTH LOGIN 2014-08-21 22:38:12 SERVER -> CLIENT: 504 5.7.4 Unrecognized authentication type You send `AUTH LOGIN` as authentication type, but …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    **@almostbob** > Usually the hosts are 'smtp.server.com' the protocol is taken care of by other declarations, what the instructions say you can and what best practice says you should are …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Optimizing sql querys

    Read this article: * http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/ Standing to the examples, you can try a query like this: set @num := 0, @type := ''; select site, cat, title, content, @num := …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    **@Borzoi** at first I thought the same, but it is not correct, check the comments in the source code: * https://github.com/PHPMailer/PHPMailer/blob/master/class.phpmailer.php#L214 The `$mail->Host` can be expressed in different ways, even …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    It's probably generated by: $mail->Host = "ssl://smtp.indonusa.net.id"; does **ssl** listen on port **25**?
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    Do you have **class.smtp.php** into the **phpmailer** directory?
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    Yes, it happens because you are linking directly to the phpmailer class, you have to require the autoload, so instead of: require_once("phpmailer/class.phpmailer.php"); Do: require $_SERVER['DOCUMENT_ROOT'] . '/phpmailer/PHPMailerAutoload.php'; AS written in …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    It seems the encoding of your editor change it to UTF8, and replace `‘` and `’` with double quotes.
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    That syntax would not work with the `mail()` function. By using PHPMailer or SwiftMailer, then you can set username and password as it was suggested to you. Otherwise you can …
  • Member Avatar for cereal
    cereal

    Replied To a Post in ini_set

    No, it's not the same, `ini_set` affects only the current executed script: > Sets the value of the given configuration option. The configuration option will keep this new value during …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Device Setting

    >Any clue what language is this: It's LUA, and the article refers to the Corona SDK: * http://docs.coronalabs.com/guide/start/introLua/index.html * http://docs.coronalabs.com/api/index.html * [http://en.wikipedia.org/wiki/Lua_(programming_language)](http://en.wikipedia.org/wiki/Lua_(programming_language))
  • Member Avatar for cereal
    cereal

    Began Watching Resolve a Memory Leak

    I need help in resolving a memory leak found using JavaScript. What the program does is auto scroll the videos and when it reaches the center (supposed to be a …
  • Member Avatar for cereal
    cereal

    Stopped Watching Resolve a Memory Leak

    I need help in resolving a memory leak found using JavaScript. What the program does is auto scroll the videos and when it reaches the center (supposed to be a …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    Check the error log of the mail server application. If the mail is not sent or it is rejected the log should have a trace of it.
  • Member Avatar for cereal
    cereal

    Stopped Watching no proper formatted output in csv file

    program fetching text file contents into array, and storing array variable values into example.csv file. The values are not storing column wise. ----------------- text file content ----------------- THE SAHARA CO-OP …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Help Using php's command line interpreter

    Yes, it is possible, follow these instructions: * http://php.net/manual/en/install.windows.commandline.php Download the installer from: http://php.net/downloads.php
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot send email from server

    Are you sure `smtp2` exists? And which mail server is configured under this domain? Xampp doesn't provide a mail server. Also check the DNS records or your domain, I see: …
  • Member Avatar for cereal
    cereal

    Replied To a Post in When Generating A CSV Chrome Crashes

    Try to check the headers and the logs created by your server (both access and error logs) to see if it happens something wrong. Also could you show a sample …
  • Member Avatar for cereal
    cereal

    Replied To a Post in When Generating A CSV Chrome Crashes

    Hi, which Chrome version are you using? I've created a little test based on your script, and it seems to works fine for me: - http://runnable.com/U-y6jLZ43dciVJXF/generate-csv-test-file-for-php I'm using Chrome `36.0.1985.143`.
  • Member Avatar for cereal
    cereal

    Replied To a Post in array help

    It depends a lot on how you want to save this input, four different columns in this specific order and in a single row, plus `$_POST['name']`? If you're going to …
  • Member Avatar for cereal
    cereal

    Replied To a Post in array help

    To avoid empty fields, empty spaces and repetitions you can change `$values` with: $forSplitProduct = 'productA, productB , productA,'; $values = array_unique(array_map('trim', array_filter(explode(',', $forSplitProduct)))); `array_filter` will remove the empty value …
  • Member Avatar for cereal
    cereal

    Replied To a Post in array help

    So this should work, correct? $forSplitProduct = 'productA,productB'; $values = explode(',', $forSplitProduct); foreach($values as $value) { echo "<input type='text' name='item[]' value='$value' />"; } By setting `item[]` you get an array …
  • Member Avatar for cereal
    cereal

    Began Watching Resolve a Memory Leak

    I need help in resolving a memory leak found using JavaScript. What the program does is auto scroll the videos and when it reaches the center (supposed to be a …
  • Member Avatar for cereal
    cereal

    Replied To a Post in One of a pair of columns always null

    Also, if you still want *one* query to return them all, you could use `union` in a subquery: select id, email, tablename from (select u.id, u.email, 'users' as tablename from …
  • Member Avatar for cereal
    cereal

    Replied To a Post in codeigniter and ajax

    **@sopu** There are two small errors here: <img height="100" width="200" src="http://localhost/ci_user/images.'<?php=$row->mco_carimage?>.' "/> Remove the single quotes around the PHP statement `'<?php ... ?>'` and add a slash `/` to the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to show only selected domain extensions with checkbox

    > $url = filter_var('http://'.$domain_name, FILTER_VALIDATE_URL); and its not returning correct url, it should be $url = filter_var('http://'.$domain_name.$tld, FILTER_VALIDATE_URL); Yes, you're correct, this morning I was a bit in a hurry …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to show only selected domain extensions with checkbox

    I'm glad it works fine. You can return the price list as an `index => value` array, for example: $prices = array( '.com' => '9.99', '.info' => '5.99', ... ); …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to show only selected domain extensions with checkbox

    In the last line there's a missing semi-column: if(isset($_POST['domain_name'])) echo $msg; A part that, your code seems fine. Here's a live example: * http://runnable.com/U-achB2oeFpCIQko/basic-dns-check-for-php Just click **run** for testing.
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to show only selected domain extensions with checkbox

    Yep, it works fine for me. Change your IF statement: if (!empty($_POST['domain_name']) && !empty($_POST['suffix'])){ To: if (!empty($_POST['domain_name']) && !empty($_POST['tld'])){
  • Member Avatar for cereal
    cereal

    Replied To a Post in Correcting html code of c. v.?

    Hi, try the W3C validator: - http://validator.w3.org/ There are some errors like missing tags or inline styles into the table tags, try to fix them using the tips and the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to show only selected domain extensions with checkbox

    Change your **select** tag with this: <select name="tld[]" id="suffix"> Then to avoid duplicates between the selected value and the checkboxes, you can add `array_unique()` right before the loop: $_POST['tld'] = …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to show only selected domain extensions with checkbox

    Hi, you can try to generate an array from the checkboxes, change them like this: <input type="checkbox" id="_org" name="tld[]" value=".org"> <label for="_org">.org</label> Note that the `id` attribute of the input …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to use preg_match

    Hi, in practice it happens that because of the fifth argument `2`, `preg_match()` will search the pattern **after** the second byte, counting from zero. So if your `$subject` is `dedfd`, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in fetch array sql. how do get individual fields

    You could use `db2_fetch_row()` and `db2_result()`, check the first example in the documentation: * http://php.net/manual/en/function.db2-fetch-row.php But instead of the loop, that moves the internal pointer to the next row, you …
  • Member Avatar for cereal
    cereal

    Began Watching no proper formatted output in csv file

    program fetching text file contents into array, and storing array variable values into example.csv file. The values are not storing column wise. ----------------- text file content ----------------- THE SAHARA CO-OP …
  • Member Avatar for cereal
    cereal

    Replied To a Post in drop down value

    Assign a `name` attribute to the **select** tag, a `value` attribute to each **option** tag, set the `method` to the submitting **form** and then read the matching array, for example, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in href utf-8 couldnt get the file

    Hi, it could be the encoding of the server, try to add this to the `.htaccess` file: AddDefaultCharset UTF-8 And read this documentation: http://www.ar-php.org/faq-php-arabic.html#apache
  • Member Avatar for cereal
    cereal

    Replied To a Post in Why Forbidden?

    Hi, make Apache able to access `/usr/share/phpMyAdmin` by assigning the directory to the `www-data` group (or the one in use by the server): chgrp www-data -R /usr/share/phpMyAdmin Then reload the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Update multiple rows

    **@DJ** I suppose the OP question is related to his previous thread, check here: * http://www.daniweb.com/web-development/databases/mysql/threads/482938/update-cart-problem bye! ;)
  • Member Avatar for cereal
    cereal

    Replied To a Post in Update cart problem

    A problem I see here is related to the attributes `id` and `name` which are the same for all the items, an `id` must be unique over the page, regarding …
  • Member Avatar for cereal
    cereal

    Began Watching Update cart problem

    Hello guys I've coded cart class with cart items and showed cart items in a table but I had a problem when I try to update the cart.. It updates …
  • Member Avatar for cereal
    cereal

    Began Watching masking a url using .htaccess / Mod ReWrite based on variable value

    Here is the scenario... I have a website that orignated as an MLM / retail combination site... It was determined that we needed some seperation between the Rep portion and …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to get comment count from a blog post feed?

    Hi, you have to set the namespace that defines `slash`, so: <?php $feed = file_get_contents("http://www.trenologi.com/feed/"); $xml = new SimpleXmlElement($feed); $xml->registerXPathNamespace('slash', 'http://purl.org/rss/1.0/modules/slash/'); $result = $xml->xpath('//slash:comments'); foreach($result as $pcount) { echo $pcount; …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Issue querying database

    If it's a comma separated list you could use `FIND_IN_SET()`: SELECT * FROM VolunDB WHERE FIND_IN_SET('item1', items) AND FIND_IN_SET('item3', items); So the above becomes: $post['keys'][] = "FIND_IN_SET(?, $key)"; **Or** you …

The End.