prosoxi.com | Archive | August

Archive | August, 2008

Print DIV

<script>
function go()
{
var a = window.open(”,”,’width=300,height=300′);
a.document.open(“text/html”);
a.document.write(document.getElementById(‘foo’).innerHTML);
a.document.close();
a.print();
}
</script>

<div id=”foo”>This is a test</div>

<input type=”button” onclick=”go()” value=”Print this Page”>

Posted in HTML - XHTML, JavaScript - Ajax, Programming0 Comments

Install PHP PECL_HTTP Support

pecl list-all

pecl install pecl_http

configuration option “php_ini” is not set to php.ini location
You should add “extension=http.so” to php.ini

Posted in Linux, Plesk0 Comments

Detect web plug-ins Flash, Media PLayer and more…

Cut & Paste Detect Plugin (Flash, Java, RealPlayer etc) script

Credit: Frederic

Description: Frederic’s versatile plugin detector can be used to detect most of the important browser plugins. They include:

- Flash
- Windows Media Player
- Java
- Shockwave
- RealPlayer
- QuickTime
- Acrobat Reader
- SVG Viewer

Working in both IE and NS, this is a very handy script to have around! Continue Reading

Posted in HTML - XHTML, JavaScript - Ajax, Programming0 Comments

Install Curl on linux

After the Mashed Museum day yesterday, I finally got in gear to see what the OpenCalais service could do to enrich the tags upon our blog post archives and forthcoming posts. To do this I used two separate plugins that have already been written and tested out by others (i’ll write about this in a separate post). However, to get this to work, I had to get the Curl library working on our main server (backup already functions) and to do this required a clean install of curl. So first off, I’ll be techie and explain how to get curl working on your linux box post installation of apache and PHP. Most of the articles I found talked about doing this prior to installing PHP. Continue Reading

Posted in Linux0 Comments

Install php-pear on linux

APC,
Alternate PHP Cache, is now the most maintained free/open source op-code cache, and is being used more and more as it emerges to be the
most stable. Continue Reading

Posted in Linux0 Comments

Linux task manager like windows

‘ps’ actually only shows you the tasks started in that shell. To see all running tasks, use:

Code:
ps aux

You can then use ‘kill PID’ or ‘killall <process-name>’. Note that the latter will, of course, end all instances of that application.

Posted in Linux0 Comments

Update Centos From SSh

yum update

Posted in Linux0 Comments

Remove – Uninstall ASL Atomic Secure Linux

1) vim /etc/yum.repos.d/asl.repo

2) Delete all lines from file

3)Save & quit  the doc :wq

more command for VIM

http://www.prosoxi.gr/2008/08/25/basic-vi-features-vim/

Posted in Linux0 Comments

Basic “vi” features VIM

Basic “vi” features

One edits a file in vi by issuing the command: vi file-to-edit.txt

The vi editor has three modes, command mode, insert mode and command line mode.

  1. Command mode: letters or sequence of letters interactively command vi. Commands are case sensitive. The ESC key can end a command.
  2. Insert mode: Text is inserted. The ESC key ends insert mode and returns you to command mode. One can enter insert mode with the “i” (insert), “a” (insert after), “A” (insert at end of line), “o” (open new line after current line) or “O” (Open line above current line) commands.
  3. Command line mode: One enters this mode by typing “:” which puts the command line entry at the foot of the screen. Continue Reading

Posted in Linux1 Comment

PHP Set Variable With Do While Loop

<?php do { ?&gt;
&lt;?php  $prosoxi <strong>.=</strong> $row_keywords['keywords'];   ?&gt;
&lt;?php } while ($row_keywords = mysql_fetch_assoc($keywords)); ?&gt;
 
&lt;?php echo $prosoxi;  ?>

The .= connect the Data

Posted in PHP0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds