2,113 Posted Topics
Re: 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. | |
Re: 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 … | |
Re: 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); … | |
Re: Check also this: http://www.daniweb.com/web-development/php/threads/435945/indefinite-loop-on-linux-ubuntu#post1872435 | |
Re: 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 … | |
Re: lol! I didn't know there was an irc server here, I've registered my nick but John the chan is still in use? | |
Re: 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 … ![]() | |
Re: @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 … ![]() | |
![]() | Re: 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! |
Re: @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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: Read this guide: http://www.ubuntu.com/download/help/install-desktop-latest bye. | |
Re: 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 => … | |
Re: 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' | |
Re: 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, … ![]() | |
Re: 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 … | |
Re: >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. | |
Re: 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! | |
Re: Use pathinfo(): http://php.net/manual/en/function.pathinfo.php $file = 'test.jpg'; echo pathinfo($file,PATHINFO_FILENAME); ![]() | |
![]() | Re: 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! ![]() |
Re: 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! | |
![]() | Re: 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!* |
Re: Hi, are you using an .htaccess file? If yes, can you post the contents here? | |
Re: 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. | |
Re: 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 :) ![]() | |
Re: 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! ![]() | |
Re: 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 | |
Re: 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! | |
Re: 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 … | |
Re: 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 | |
Re: Try this: $list = array(); while($ids = mysql_fetch_array($sql)){ $list[] = $ids['id']; } print_r($list); bye! | |
Re: 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: … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
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 … | |
![]() | Re: 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 … ![]() |
Re: Consider also HJ-Split, it's free and cross-platform and works fine. | |
Re: I think it's related to **inodes**: http://www.linfo.org/file_name.html | |
Re: @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. | |
Re: Same as JorgeM. Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.78 Safari/535.11 | |
Re: 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 … | |
Re: 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'); | |
Re: 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. | |
Re: 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 | |
Re: 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. |
The End.