2,113 Posted Topics

Member Avatar for makeuni

We need more details: which applications and versions? what have you tried to do? is this a fresh install or it stopped working? do you get any errors when you try to perform the install action? From terminal try: sudo apt-get update sudo apt-get upgrade and then retry to install.

Member Avatar for CimmerianX
0
177
Member Avatar for choconom

Hello, If you temporary comment the delete block of code and add an `print_r($_POST)` you can read in which format you get the data, something like this: Array ( [checkbox] => Array ( [0] => 3 [1] => 8 [2] => 17 ) [delete] => Delete ) if you select …

Member Avatar for AdelineZ
0
3K
Member Avatar for DaveyMoyes

As diafol pointed, you are not doing the login in your curl request. Anyway I use this function, that make use of **file_get_contents()** and works pretty well: <?php function getlink($url) { $version = '2.0.1'; $format = 'xml'; $login = 'username'; $appkey = 'API_KEY'; $bitly = 'http://api.bit.ly/shorten?version='.$version.'&longUrl='.urlencode($url).'&login='.$login.'&apiKey='.$appkey.'&format='.$format; $response = file_get_contents($bitly, TRUE); …

Member Avatar for cereal
0
438
Member Avatar for anandschiru

Check also this: http://www.daniweb.com/web-development/php/threads/435945/indefinite-loop-on-linux-ubuntu#post1872435

Member Avatar for anandschiru
0
124
Member Avatar for Kcachilove

In addition to diafol suggestion, I think this can also be done at SQL level, but `the_date` should be converted to a **datetime** field in order to do comparisons, now I think it's a varchar. You need to use `BETWEEN ... AND ...` expression: http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#operator_between For example: create table booking …

Member Avatar for cereal
0
186
Member Avatar for John A

lol! I didn't know there was an irc server here, I've registered my nick but John the chan is still in use?

Member Avatar for Mike Askew
0
194
Member Avatar for Riu 2009

In addition you can use alternate stylesheets, which are available also from the browser tools: <link href="/styles/default.css" rel="stylesheet" title="default style" /> <link href="/styles/dark.css" rel="alternate stylesheet" title="dark style" /> <link href="/styles/white.css" rel="alternate stylesheet" title="white style" /> http://www.w3.org/Style/Examples/007/alternatives.en.html To update you can set a cookie to save the CSS to load when …

Member Avatar for diafol
0
254
Member Avatar for Viped

@Viped you can use a SSL certificate to encrypt the data between the client and the server, you will need to install a CA certificate in your server, from that moment the encrypted data will be sent through HTTPS. For internal uses you can use an auto-generated certificate, when you …

Member Avatar for LastMitch
0
187
Member Avatar for LastMitch

Usually I search for whatever it makes me smile or that I find ironic, for example: [UOGB](https://www.youtube.com/watch?v=2KZjnFZvCNc), [Chinese Man](https://www.youtube.com/watch?v=XsZDWNk_RIA), [Reggie Watts](http://www.youtube.com/watch?v=ABm7DuBwJd8), [World/Inferno Friendship Society](https://www.youtube.com/watch?v=Gjuv3rFOQaU), [Magnetic Zeroes](http://www.youtube.com/watch?v=XWIvfE01J0k), [Black Keys](http://www.youtube.com/watch?v=a_426RiwST8) and many others!

Member Avatar for GrimJack
0
580
Member Avatar for laddu

@username456453 the suggestion of blud is correct, on a **server** platform you can check the incoming connections through **netstat** command, it's quite different from the desktop platform that you are using in your assertion, and even if opening a page (into a server/desktop environment) loads multiple requests, this will be …

Member Avatar for cereal
0
733
Member Avatar for dwlamb

You have to add the **ServerName** directive into the **lh-test_site** file: ServerName testsite DocumentRoot /var/www/test_site <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/test_site/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> then inside `/etc/hosts` add: 127.0.0.1 testsite and run a2ensite as before, it should work.

Member Avatar for dwlamb
0
332
Member Avatar for hemalatha.nambisan

You can use **mod_perl**: http://perl.apache.org/ Or **CGI**: http://httpd.apache.org/docs/2.2/howto/cgi.html For the second solution edit line 771: AddHandler cgi-script .cgi .pl i.e. remove the comment sign # and add `.pl` to the handler, then you have to add `Options +ExecCGI` inside the block `<Directory "C:/Apache Group/Apache2/htdocs">` at line 253. But these changes …

Member Avatar for hemalatha.nambisan
0
371
Member Avatar for cussel

It would be easier knowing how the main arrays are generated. If the source is a database this can be done in a previous step. And also, as LastMitch pointed, post also your code. Anyway, this is a test example, it outputs the new arrays without the collision: <?php $data1 …

Member Avatar for cussel
0
273
Member Avatar for najm.macet
Member Avatar for rubberman
0
93
Member Avatar for cussel

Try this: <?php $arr = array( array( '7'=>'repsol kawasaki honda ktm', '8'=>'kawasaki honda ktm bmw', '9'=>'honda ktm bmw ducati', '10'=>'ktm bmw ducati yamaha' ), array( '23'=>'lamborghi ferarri mercedes hyundai', '24'=>'ferarri mercedes hyundai toyota', '25'=>'mercedes hyundai toyota nissan', '26'=>'hyundai toyota nissan renault' ), ); $z = array(); foreach($arr as $k1 => …

Member Avatar for cereal
0
328
Member Avatar for BigPaw

My favourite is *datteri* with roasted almonds. I'm not sure about the English term for *datteri* which is the fruit of the [Phoenix plant](http://en.wikipedia.org/wiki/Phoenix_(plant)) > and dry cereal o_o'

Member Avatar for deceptikon
0
199
Member Avatar for <M/>

You can perform a redirect to a "success.php" page or turn to an error page. You can do this with header(): $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if(mail($to, $subject, $message, …

Member Avatar for diafol
0
128
Member Avatar for klemme

I think **$pos_op** should go before the statement, because it still doesn't exists and so this will give a boolean **FALSE** value when you try to send it to mysqli, so try to change the order: $pos = $_GET['pos']; $pos_op = $pos + 1; $adjust = "UPDATE modul_galleri SET pos …

Member Avatar for klemme
0
2K
Member Avatar for ddanielsmith

>On your Form your <input type> should be text not passowrd. Just a small correction: **type** can also be **password** ( http://www.w3.org/TR/html5/the-input-element.html#attr-input-type & http://www.w3.org/TR/html401/interact/forms.html#input-control-types ), the only difference between **text** and **password** is the masquerading in the client side, while on the server side you get the same string. Bye.

Member Avatar for cereal
0
193
Member Avatar for klemme

Check the manual: http://www.php.net/manual/en/reference.pcre.pattern.syntax.php ~ is a delimiter, from the manual: > Often used delimiters are forward slashes (/), hash signs (#) and tildes (~) (.*?) it's a loop to match the contents of href attribute, bye!

Member Avatar for klemme
0
185
Member Avatar for freakvista

Use pathinfo(): http://php.net/manual/en/function.pathinfo.php $file = 'test.jpg'; echo pathinfo($file,PATHINFO_FILENAME);

Member Avatar for diafol
0
205
Member Avatar for Zaina jee

You can use **xcopy**: xcopy c:\folder d:\ /e http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true bye!

Member Avatar for Zaina jee
0
149
Member Avatar for Dani
Member Avatar for lsabinano

If the **date_aquired** field is already *datetime* you can also use **strtotime()**: $date = mysql_real_escape_string($_POST['datepickerID']); $datepickerID = date('Y-m-d H:i:s', strtotime($date)); bye!

Member Avatar for lsabinano
0
188
Member Avatar for iamthwee

I usually do 8 miles on treadmill 4 times a week at home, when I have enough time I do cross-country on a 12-14 miles distance. *Run Forrest, run!*

Member Avatar for Mike Askew
0
437
Member Avatar for Stardemos
Member Avatar for cereal
0
250
Member Avatar for AndresOend

You can boot on recovery mode, you will get a root shell, from which you can use **passwd** command to assign a new password to the root account. You will not need the old one, from there you can change the other accounts passwords and regain access.

Member Avatar for AndresOend
0
152
Member Avatar for geneh23

Quick suggestion: when login is true I prefer to set a session which enables users rights. So, at least, I can stop bugging the database for that. Otherwise I will have an extra query for each reserved page and each user logged. Bye :)

Member Avatar for diafol
0
543
Member Avatar for nicoalmighty

LastMitch I think it's CodeIgniter framework :) @nico Change lines 20 and 21 with: $username = $this->input->post('username'); $password = this->input->post('password'); so each field will be sanitized and if it is empty or wrong will return FALSE: http://codeigniter.com/user_guide/libraries/input.html bye!

Member Avatar for LastMitch
0
207
Member Avatar for asrsmunna

Search the forum, this argument has been discussed many times. For example: http://www.daniweb.com/search/query/php-mass-mail/0?q=site%3A%2A%2F+php+mass+mail

Member Avatar for rayidi
0
252
Member Avatar for nit8899

Add: extension=mysql.so to php.ini or check if there is a **mysql.ini** file in `/etc/php5/apache2/conf.d` and place this directive there, then reload the server: sudo service apache2 reload bye!

Member Avatar for nit8899
0
1K
Member Avatar for Alochai

Yes you can do that, I only suggest you to use arrays: $data['home']['description'] = 'home descr..'; $data['home']['keywords'] = 'home,descr,..'; $data['home']['title'] = 'Home Title'; $data['gallery']['description'] = 'home descr..'; $data['gallery']['keywords'] = 'home,descr,..'; $data['gallery']['title'] = 'Home Title'; so, for example, if you have parameters in your URL you can use it to get …

Member Avatar for Alochai
0
332
Member Avatar for code739

This is in server side, it depends on php.ini directive **upload_tmp_dir** or if this is not set, on system configuration. Usually on linux servers this is `/tmp`: http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir

Member Avatar for code739
0
230
Member Avatar for mmcdonald

Try this: $list = array(); while($ids = mysql_fetch_array($sql)){ $list[] = $ids['id']; } print_r($list); bye!

Member Avatar for cereal
0
216
Member Avatar for mmcdonald

Hi, I think you can use **[Gearman](http://gearman.org/)**, it allowes you to do parallel processing, you have to set a client to retrieve data and send it to a job server, this will call the workers registered for that particular task. Here's a example in *slow motion* of the client script: …

Member Avatar for mmcdonald
0
423
Member Avatar for daniel36

Have you tried object tag? <object width="850px" height="550px" type="application/pdf" data="/pdf/pdf_to_display.pdf"></object> you can place it inside the iframe page or directly in the webpage as alternative to the iframe solution. Bye.

Member Avatar for cereal
0
79
Member Avatar for lewashby

Check my previous post about Apache config: http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/434267/installing-php#post1864192 Or post what you've done and your configuration file settings. A part that, just place this code inside the script: <?php phpinfo(); ?> this function will generate all the layout needed to display the PHP configuration.

Member Avatar for cereal
0
331
Member Avatar for yahya.erturan

You can handle multiple applications but you have to change the structure, this it may help: http://codeigniter.com/user_guide/general/managing_apps.html > Note: Each of your applications will need its own index.php file which calls the desired application. The index.php file can be named anything you want.

Member Avatar for cereal
0
2K
Member Avatar for cereal

Hello. The problem is in [this post](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/434969/php-and-apache#post1868055). First block of code, line 5 and line 9. I see a difference between normal view and raw view (on double click). In normal view line 5 appears like: <Directory /> in raw: <Directory ></Directory> and the same happens on line 9. These …

Member Avatar for Dani
1
257
Member Avatar for LastMitch

I think he is referring to the [PHP graphic library](http://www.php.net/manual/en/book.image.php), if so there is no direct relation between JQuery and GD. If you're using a debian based distro then use: `sudo apt-get install php5-gd` to install the library, but it should be already included in your PHP installation: > Since …

Member Avatar for LastMitch
0
119
Member Avatar for Reverend Jim
Member Avatar for Reverend Jim
0
335
Member Avatar for Random_Integer
Member Avatar for rubberman
0
145
Member Avatar for acfchinnababu

@acfchinnababu read this link, you will find all your answers: http://www.fedorafaq.org/basics/ @amraiz.kiyani Aslam o alikum. Please open a new thread and explain better your problem.

Member Avatar for mike_2000_17
0
245
Member Avatar for Dani

Same as JorgeM. Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.78 Safari/535.11

Member Avatar for nitin1
4
196
Member Avatar for cssweb

You have two solutions, the first one: $i = 0; while($row = mysql_fetch_object($query)) { $i++; echo " <tr> <td>$i. $row->name</td> </tr> "; } The second is to print the list all inside one row: echo "<tr><td><ol>"; while($row = mysql_fetch_object($query)) { echo "<li>$row->name</li>\n"; } echo "</ol></td></tr>"; __EDIT__ I think Dani gave …

Member Avatar for cereal
0
130
Member Avatar for tom.vardy.12

The url is requesting for user and password, if this is not your domain maybe it's a counter measure for hotlinking issues. If it's yours domain then just use server path, for example: $image = imagecreatefromjpeg('/var/www/dev/media/images/nohomepic.jpg');

Member Avatar for tom.vardy.12
0
222
Member Avatar for phpperl
Member Avatar for daniel36

First of all remember to use CODE to wrap data you post in the forums. Second: this is wrong [icode]$this->db->select('id','country_name');[/icode] you should write [icode]$this->db->select('id, country_name');[/icode] otherwise country_name will be seen as second argument. Check if this solves the problems. Bye.

Member Avatar for wesley1263
0
4K
Member Avatar for tarunkumar1

A virus inside a usb stick doesn't have any effect into a linux machine, because the autostart.inf file is not considered and the eventual malware won't start without user action. The problem is more related to permissions or settings: https://help.ubuntu.com/community/Mount/USB

Member Avatar for cereal
0
118
Member Avatar for daniel36

If you are using Apache web server then use an .htaccess file, with this directive: order allow,deny deny from all put this inside upload directory.

Member Avatar for sDJh
1
108

The End.