2,113 Posted Topics
Re: Check also PHP documentation for more information: http://www.php.net/manual/en/language.variables.variable.php | |
Re: You could move CodeIgniter to a subdirectory: /index.html /backend/index.php /backend/system/ /backend/application/ Create an .htaccess file inside **backend** and change the rewrite rule to match the directory: RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /backend/index.php/$1 [L] A part from this solution, keep in mind that you can create simple Controllers and … | |
Re: Another possible method is to use [`exec()`](http://php.net/manual/en/function.exec.php) and call the **arp-scan** tool: $interface = 'eth0'; $password = 'password'; $cmd = "echo '$password' | sudo -S arp-scan --quiet --interface=$interface --localnet"; exec($cmd, $output); print_r($output); The variable **$output** will return an array with the results of the scan. Note that you need to … | |
Re: Do you directly edit the file or you use `resolvconf` command? | |
Re: Hi, if I'm not wrong you cannot replicate many Masters to one single Slave in MySQL, but you should check MySQL documentation and switch between versions to check if there are any changes: http://dev.mysql.com/doc/refman/5.1/en/replication.html Note: if you are trying to apply replication in relation to your previous thread on PHP … | |
Re: Hi, it could depend on the **Quantum Depth** of your current ImageMagick setup. Run this command in terminal: identify -list configure |grep QuantumDepth you should get `QuantumDepth 16`, usually however it's 8, which referes to the [memory bit quality](http://www.imagemagick.org/Usage/basics/#quality). In few words, to get better results you have to recompile … | |
Re: Innamorato is an italian word, the correct transcription is with two nn, so `innamorato` not `inamorato`. The text seems to be this: >Innamorato Mission Music Masculinity Master of the Art Music Who is this music that which description may never justify Can the ocean be described? Fathomless music Body of … | |
Re: Generate an **application password** and use that to sign in through SMTP: http://support.google.com/a/bin/answer.py?hl=en&answer=1032419 | |
Re: Let say the databases are on **ServerB** and **ServerC** and the main website with the search function is on **ServerA**, if the servers are in the same network you can use `bind-address` directive: bind-address = 192.168.0.100 # local network IP address Otherwise you have to comment this directive `#bind-address` and … | |
Re: It's easier to extend Sqlite class instead of rewriting a new one, take a look at the manual: * this for an example: http://www.php.net/manual/en/sqlite3.open.php * this for complete documentation: http://www.php.net/manual/en/book.sqlite3.php | |
Re: You have to use `mysqldump`: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html | |
Re: Check also the manual: http://www.php.net/manual/en/migration5.php | |
Re: Hi, without the code is not simple to solve the problem. Check phpfox [bug tracker](http://www.phpfox.com/tracker/), from their community forums it seems there are different problems with janrain. | |
Re: It all depends on what you want to do. The two items are `x` and `y`? What have you tried? A simple `$_GET['width'][1]` it's not enough? | |
Re: Add `#!/bin/sh` to the top of the script and make sure it's executable. If you are not sure about the path of **sh** then run `which sh`. >shouldnt the count be 6? yes, it works fine for me. Maybe there are special characters? | |
Re: Take a look at Composer, it could be useful for your project. The purpose is the same of yours and there are already many packages available: http://getcomposer.org/ | |
Re: Yes, you can edit your answers for 30 minutes. But you could flag your own post as *Flag Bad Post* and motivate the deletion request. | |
Re: It happens, look here for example: http://www.daniweb.com/web-development/php/threads/453173/how-to-view-jobs-from-another-site-on-my-website All downvoted without an explanation. Bye! | |
Re: If you don't have a profile i.e. a specific and allowed access to edit your own submitted data, you can only contact the host and ask the removal. Differently, your action will be considered a cracking attempt. | |
Re: You can output for RCS (Revision Control System) and `ed scripts` by using `-n` or `-e`: diff -n file1 file2 > file3 diff -e file1 file2 > file3 Check `man diff` for more information. Or you can use the `awk` command: diff file1 file2 | awk '/>/ || /</ { … | |
Re: I don't know if there is a specific function in Wordpress to detect URI segments, or where you can set user defined functions, but you could add a conditional statement in your template to check the current section, something like: function get_uri_segment($int = 1, $url = false) { $url = … | |
Re: There is no timeout for cache entries, the system works by deleting the least recently used (LRU algorithm), for more information check: * http://dev.mysql.com/doc/refman/5.0/en/query-cache.html * http://dev.mysql.com/doc/refman/5.0/en/buffering-caching.html > In my case, When I call one store procedure first time, It is giving me result in 1sec, after that it gives me … | |
Re: Maybe users table has an `id` instead of `user_id`? Can you show the output of the command `explain users`? | |
Re: Hi, It seems you are sending a multidimensional array to this variable: $to = $this->admin_model->get_goinmail(); You can submit arrays but in this form: `$to = array('donald@email.tld','mickey@email.tld');` Also you are sending empty variables to these functions, so it will not work: $this->email->from($from); $this->email->subject(@$subject); $this->email->message(@$message) **Important:** remove the `@` from the variables, … | |
Re: Also check the logs of MySQL, Apache, PHP to see if there is a slow query or an error. And make sure the slow query log is enabled, by default MySQL logs only errors: http://dev.mysql.com/doc/refman/5.1/en/server-logs.html | |
Re: Concerning the undefined function it seems a known bug: http://drupal.org/node/481758 Try to increase the `max_execution_time` in php.ini and reload Apache after editing to load the changes. Regarding the other question, I didn't understood. Can you explain it better? | |
Re: To display the datepicker you have to set an `id` to the input field, you can do it by passing an array of attributes: datefield = forms.TextInput(attrs={'id': 'datepicker', 'placeholder': 'Click to select'}) datefield.render('field_name', 'Pick up a Date') Read: https://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms.Widget.attrs | |
Re: Which requirements are needed by your provider? For example, here in Italy the most common max speed is about 20Mbps, so it's enough an ADSL2+ router which supports up to 24Mbps in downstream and a device like a Linksys WAG200G works fine: http://support.linksys.com/en-us/support/gateways/WAG200G | |
Re: Try: <?php $html = ""; $url = "http://isbndb.com/api/books.xml?access_key=MCIJARNT&index1=isbn&value1=9780439023528"; $xml = simplexml_load_file($url); foreach($xml->BookList as $book) { $html .= '<h1>'. $book->BookData->Title .'</h1>'; } echo $html.PHP_EOL; ?> ![]() | |
Re: Check PHP manual: http://php.net/manual/en/function.mail.php If you still need help post back your code, bye! | |
![]() | Re: Try: DELETE FROM wp_options WHERE option_name IN ('_transient_timeout_xxx','_transient_xxx'); If using PHP then: $options = implode(',',array("'_transient_timeout_xxx'","'_transient_xxx'")); mysql_query("DELETE FROM wp_options WHERE option_name IN ($options)") or die(mysql_error()); ![]() |
Re: CI Session doesn't use PHP native Session, so you don't have to use `session_destroy()`, change you logout method to: public function logout() { $this->session->unset_userdata('login'); $this->session->unset_userdata('username'); $this->session->unset_userdata($result); # error redirect('learning/login'); } Also, if `$result` variable is global then use `$this->result` otherwise you get an error because the variable is not declared … | |
Re: Can you post the results of: show create table tbl_user_reg\G show create table tbl_course_offred\G It will help to understand the relations between the two tables. If I understood your request in `tbl_course_offred` you have a column `skills` which is varchar and saves multiple values as `php,css,html` and you want to … ![]() | |
Re: In addition, for the **Server Handler** use `php_sapi_name()`: http://php.net/manual/en/function.php-sapi-name.php | |
Re: You can use the `query()` method to run one single request: $sql = "DELETE FROM tbl_upcoming_course as tbl, (SELECT id FROM tbl_upcoming_course WHERE crs_last_date <= ? ORDER BY upcom_id LIMIT ?, ?) as sub WHERE id = sub.id"; $this->db->query($sql, array($date, $limit, $offset)); Before doing this be sure `$date` is in … | |
Re: It seems difficult because there is no official support to Oracle Java, but you can follow these instructions for Ubuntu, it will work also with Mint: http://askubuntu.com/questions/67909/how-do-i-install-oracle-jdk-6 | |
Re: Show your code. Also PAM extension is working for you? You can install it also via apt: sudo apt-get install php5-auth-pam then try: pam_auth('username','password',&$error); echo $error; `pam_auth()` will return boolean true on login, otherwise you can display the errors by echoing the third argument `&$error`. | |
Re: I'm not familiar with Slackware & Co. but it seems there's a tools similar to apt i.e. `slapt-get` which can be use from command line: slapt-get --search package_name slapt-get --install package_name Here there is some information: http://software.jaos.org/git/slapt-get/plain/FAQ.html Otherwise you can download the **.deb** or **.rpm** file from [LibreOffice website](http://www.libreoffice.org/download/?nodetect) and … | |
Re: I'm not sure this is still possible, since modern browsers works in a sandbox, separated from the system, so you cannot execute or copy a local file directly from a remote script. | |
Hello there! I noticed a little bug. I was trying to write a nested list, like this one: * Item One * Item Two 1. Item One 2. Item Two * Item Three I'm not sure this is related, it appears almost fine in the preview box, but it adds … | |
Re: Check the documentation, there is a good example: http://dev.mysql.com/doc/refman/5.0/en/create-trigger.html | |
Re: Those functions are not for MySQL, you have to use `CONVERT_TZ()`: https://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_convert-tz You can also change the database time zone, for example: SET GLOBAL time_zone = 'UTC'; http://dev.mysql.com/doc/refman/5.0/en/time-zone-support.html | |
Re: Did you reload Apache after changing `/etc/apache2/sites-available/default`? To do that run: sudo service apache2 reload | |
Re: Exactly what is the problem? Which version are you trying to install and which platform are you using? For more information read: http://dev.mysql.com/doc/refman/5.1/en/installing.html | |
Re: Raja please use appropriated titles: http://www.daniweb.com/community/rules This is the fifth thread you start with the same generic title. | |
Re: You can use [SimpleXML](http://www.php.net/manual/en/function.simplexml-load-string.php): <?php $link = file_get_contents('http://remote.tld/file.xml'); $xml = simplexml_load_string($link); print_r($xml); This will return an object, that you can use as example: `echo $xml->totalresults;` | |
Re: Are you using CodeIgniter Session library? If yes then autoload it, go to `/application/config/autoload.php` and go to **Auto-load libraries** block: $autoload['libraries'] = array('database','session'); Otherwise load it inside the construct of the Controller. For example, use this controller: class Test extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('session'); } # … | |
Re: Hmm, I didn't tested this, but you could use **php-fpm** to start a FastCGI socket and assign a specific **uid** and **gid** to it, read: 1. http://wiki.apache.org/httpd/PHP-FPM 2. http://php.net/manual/en/install.fpm.install.php 3. http://www.php.net/manual/en/install.fpm.configuration.php 4. http://www.howtoforge.com/using-php5-fpm-with-apache2-on-ubuntu-12.10 If you have linux ubuntu and PHP5 run: sudo apt-get install php5-fpm libapache2-mod-fastcgi then edit the **php.ini** … | |
Re: Show your code, it will be easier to understand the problem. | |
Re: That code should not be considered as a correct snippet, as will work only if `register_global` is `on`, a condition that enables everyone to overwrite any variable with get, post, cookie call... fortunately **register_globals** [is going to be removed.](http://www.php.net/manual/en/faq.using.php#faq.register-globals) More in general, for everyone, use **superglobals** as suggested by IIM: … |
The End.