2,113 Posted Topics

Member Avatar for jasminjew

Check also PHP documentation for more information: http://www.php.net/manual/en/language.variables.variable.php

Member Avatar for eburlea
0
210
Member Avatar for Casperjames

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 …

Member Avatar for cereal
0
416
Member Avatar for divyakrishnan

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 …

Member Avatar for |-|x
-1
3K
Member Avatar for OsaMasw
Member Avatar for CimmerianX
0
185
Member Avatar for OsaMasw

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 …

Member Avatar for cereal
0
194
Member Avatar for wplay

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 …

Member Avatar for pritaeas
0
275
Member Avatar for Xantipius

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 …

Member Avatar for Xantipius
-1
270
Member Avatar for McLaren

Generate an **application password** and use that to sign in through SMTP: http://support.google.com/a/bin/answer.py?hl=en&answer=1032419

Member Avatar for McLaren
0
647
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
117
Member Avatar for JACOBKELL

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

Member Avatar for cereal
0
240
Member Avatar for Victoryy

You have to use `mysqldump`: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

Member Avatar for cereal
0
237
Member Avatar for chrispitt

Check also the manual: http://www.php.net/manual/en/migration5.php

Member Avatar for rolandbleyer91
0
556
Member Avatar for veranopage

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.

Member Avatar for cereal
0
1K
Member Avatar for davidjennings

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?

Member Avatar for paulkd
0
227
Member Avatar for leghorn

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?

Member Avatar for chriswelborn
0
150
Member Avatar for nikola.pavlicevic

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/

Member Avatar for cereal
0
173
Member Avatar for code_rum

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.

Member Avatar for code_rum
0
149
Member Avatar for Stuugie

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!

Member Avatar for Stuugie
0
211
Member Avatar for jhollin568

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.

Member Avatar for cereal
0
150
Member Avatar for sudipta.mml

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 '/>/ || /</ { …

Member Avatar for rubberman
0
156
Member Avatar for hindu times

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

Member Avatar for cereal
0
316
Member Avatar for sathishnadu

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 …

Member Avatar for cereal
0
175
Member Avatar for sathishnadu

Maybe users table has an `id` instead of `user_id`? Can you show the output of the command `explain users`?

Member Avatar for cereal
0
135
Member Avatar for meda shiva

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

Member Avatar for cereal
0
433
Member Avatar for McLaren

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

Member Avatar for McLaren
0
320
Member Avatar for kakalahori

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?

Member Avatar for kakalahori
0
445
Member Avatar for Sivaram R

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

Member Avatar for Sivaram R
0
265
Member Avatar for preetg

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

Member Avatar for caperjack
0
150
Member Avatar for ahudson

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

Member Avatar for diafol
0
1K
Member Avatar for razamughal67

Check PHP manual: http://php.net/manual/en/function.mail.php If you still need help post back your code, bye!

Member Avatar for razamughal67
-1
293
Member Avatar for dartiss

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());

Member Avatar for dartiss
0
236
Member Avatar for Venter

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 …

Member Avatar for cereal
0
5K
Member Avatar for rjony321

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 …

Member Avatar for diafol
0
185
Member Avatar for davy_yg

In addition, for the **Server Handler** use `php_sapi_name()`: http://php.net/manual/en/function.php-sapi-name.php

Member Avatar for davy_yg
0
207
Member Avatar for rjony321

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 …

Member Avatar for cereal
0
6K
Member Avatar for asaidi

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

Member Avatar for rubberman
0
146
Member Avatar for lukas.vandendijssel

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

Member Avatar for mattster
0
828
Member Avatar for faridansari

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 …

Member Avatar for mike_2000_17
0
664
Member Avatar for Angle90

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.

Member Avatar for cereal
0
5K
Member Avatar for cereal

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 …

Member Avatar for cereal
0
201
Member Avatar for mogaka

Check the documentation, there is a good example: http://dev.mysql.com/doc/refman/5.0/en/create-trigger.html

Member Avatar for cereal
0
93
Member Avatar for Kratoswoo

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

Member Avatar for imBaCodes
0
103
Member Avatar for deepak.fugo

Did you reload Apache after changing `/etc/apache2/sites-available/default`? To do that run: sudo service apache2 reload

Member Avatar for cereal
0
347
Member Avatar for GioMazing16

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

Member Avatar for cereal
0
224
Member Avatar for Raja_2

Raja please use appropriated titles: http://www.daniweb.com/community/rules This is the fifth thread you start with the same generic title.

Member Avatar for Raja_2
0
191
Member Avatar for amith_ami

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

Member Avatar for pritaeas
0
241
Member Avatar for shakayu

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'); } # …

Member Avatar for shakayu
0
168
Member Avatar for lukas.vandendijssel

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

Member Avatar for lukas.vandendijssel
0
562
Member Avatar for shakayu
Member Avatar for shakayu
0
334
Member Avatar for 72dpi

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

Member Avatar for michel.cote
2
1K

The End.